Unverified Commit f731538c authored by Jacek Galowicz's avatar Jacek Galowicz Committed by GitHub
Browse files

nixos-test-driver: fix handling of type-check-disabled case (#511225)

parents 98f92e9c ece6acc1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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