From dd6d59a04d030a6ec94852c92c723bf9b90b2c3a Mon Sep 17 00:00:00 2001 From: Jeff Hykin Date: Sun, 26 May 2024 10:31:46 -0400 Subject: [PATCH] improve test script --- nodes/1_lib/scripts/test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodes/1_lib/scripts/test b/nodes/1_lib/scripts/test index 9124de2..42a572f 100755 --- a/nodes/1_lib/scripts/test +++ b/nodes/1_lib/scripts/test @@ -4,7 +4,7 @@ # this just runs tests/check-eval.nix # result="$( - echo 'import ./nodes/1_lib/source/tests/check-eval.nix' | nix repl 2>&1 | grep -v 'Inappropriate ioctl for device' + echo 'import ./nodes/1_lib/source/tests/check-eval.nix' | nix repl --show-trace 2>&1 | grep -v 'Inappropriate ioctl for device' )" expected='Welcome to Nix 2.18.1. Type :? for help. @@ -13,4 +13,7 @@ expected='Welcome to Nix 2.18.1. Type :? for help. if [ "$(echo "$result")" = "$expected" ] then echo test passed +else + echo "test failed" + echo "$result" fi \ No newline at end of file