From 588f8fa5946225d112ce0d2108ad95678b3855dc Mon Sep 17 00:00:00 2001 From: Stephan Maka Date: Mon, 22 Apr 2019 01:14:17 +0200 Subject: [PATCH] windows tests: exit 0 on success, fix $FAIL escaping --- artiq/windows/run-test.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/artiq/windows/run-test.nix b/artiq/windows/run-test.nix index 30d13d2..fe89ca8 100644 --- a/artiq/windows/run-test.nix +++ b/artiq/windows/run-test.nix @@ -69,8 +69,11 @@ stdenv.mkDerivation { ${ssh "shutdown -p -f"} wait - [ "\\\$FAIL" = "y" ] && exit 1 - + if [ "\$FAIL" = "y" ]; then + exit 1 + else + exit 0 + fi EOF chmod a+x $out/bin/run.sh '';