From 4b129a0f711aea22c52ad8ff48a3126a1b32a988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 May 2020 11:27:18 +0100 Subject: [PATCH] fix toshiba/swanky evaluation (#167) --- tests/run.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/run.py b/tests/run.py index dde7929..d592049 100755 --- a/tests/run.py +++ b/tests/run.py @@ -35,10 +35,10 @@ def build_profile(profile: str) -> Tuple[str, subprocess.CompletedProcess]: cmd = [ "nix", "build", - "-f", "build-profile.nix", + "-f", + "build-profile.nix", "-I", f"nixos-hardware={ROOT}", - "--dry-run", "--show-trace", "--system", system, @@ -46,6 +46,11 @@ def build_profile(profile: str) -> Tuple[str, subprocess.CompletedProcess]: "profile", profile, ] + + # uses import from derivation + if profile != "": + cmd += ["--dry-run"] + print("$ " + " ".join(cmd)) res = subprocess.run( cmd, cwd=TEST_ROOT, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, )