Files
infix/test/infamy
Tobias Waldekranz f3f313bb98 infamy: Fix default transport selection
Using `sys.argv[0]` does not quite achieve the effect we want, namely
that any (test-case, $PYTHONHASHSEED) tuple should always default to
the same transport.

For example, the following two examples should always use the same
transport:

    $ make PYTHONHASHSEED=1337 test-sh
    infamy0:test$ ./case/ietf_system/hostname/test.py

    $ make PYTHONHASHSEED=1337 test-sh
    infamy0:test$ cd ./case/ietf_system/hostname
    infamy0:hostname$ ./test.py

But, since their argv[0]'s are different, they don't.

Therefore use the _last two components_ of argv[0]'s full path
instead. This should:

- Spread the allocation over an entire suite run, since the
  penultimate component is usually the test name.

- Keep the allocation stable when test code is modified (which is
  common during debugging of failing tests)

- Avoid instabilities stemming from the local storage location (i.e.,
  home directory names etc.)
2025-01-08 10:14:46 +01:00
..
2024-12-03 16:29:28 +01:00
2025-01-08 10:14:46 +01:00
2024-12-19 09:33:45 +01:00
2024-10-16 19:01:40 +02:00
2024-12-18 14:55:00 +01:00
2024-09-05 07:04:58 +02:00
2024-12-03 16:29:28 +01:00
2024-12-03 16:29:28 +01:00
2024-12-19 10:14:15 +01:00
2024-09-05 07:04:58 +02:00
2024-02-23 14:01:23 +01:00
2024-10-23 10:08:10 +02:00