[GRASS-git] [OSGeo/grass] 18a195: grass.script: Fix collision of random names in tes...

Vaclav Petras noreply at github.com
Tue Jan 18 14:09:26 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 18a1956b14b2f9e793e4a7cfb38626eb750e0182
      https://github.com/OSGeo/grass/commit/18a1956b14b2f9e793e4a7cfb38626eb750e0182
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M python/grass/script/testsuite/test_names.py

  Log Message:
  -----------
  grass.script: Fix collision of random names in test (#2105)

The test is written in a way that it may fail (with low probability). This is because the function does not make
any promises about that.

However, a copy-pasted size of the name left only 2 characters for the random part which increased the collision probability significantly. This change increases the total size the name to increase the size of the random suffix.

Failing CI for a recent commit on main seems to be the first occurrence of this since the test was introduced in #653 14 months ago.




More information about the grass-commit mailing list