nixos-test-driver: fix handling of type-check-disabled case

f1bcb61731 did not handle this correctly,
causing failures (e.g. https://hydra.nixos.org/build/326659503/nixlog/2/tail)
This commit is contained in:
Michael Daniels
2026-04-18 16:18:17 -04:00
parent eb059e762d
commit ece6acc1e3
2 changed files with 7 additions and 1 deletions
@@ -174,7 +174,11 @@ def generate_driver_symbols() -> None:
vlans=[],
global_timeout=0,
enable_ssh_backdoor=False,
test_script=Path("testScriptWithTypes"),
test_script=(
Path("testScriptWithTypes")
if (Path("testScriptWithTypes").is_file())
else Path("testScriptFile")
),
),
out_dir=Path(),
logger=CompositeLogger([]),
+2
View File
@@ -85,6 +85,8 @@ let
testScriptWithTypes
''}
echo -n "$testScript" > testScriptFile
cp "${config.driverConfiguration.test_script}" $out/test-script
ln -s ${testDriver}/bin/nixos-test-driver $out/bin/nixos-test-driver