mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 12:33:02 +02:00
One to verify it is the correct version on the duts and one that check that it is the correct bootorder.
17 lines
442 B
Python
Executable File
17 lines
442 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
|
|
import infamy
|
|
|
|
with infamy.Test() as test:
|
|
with test.step("$PYTHONHASHSEED is set"):
|
|
seed = os.environ.get("PYTHONHASHSEED")
|
|
if seed == None:
|
|
print("$PYTHONHASHSEED must be set in order to create a reproducible test environment")
|
|
test.fail()
|
|
else:
|
|
print(f"Specify PYTHONHASHSEED={seed} to reproduce this test environment")
|
|
|
|
test.succeed()
|