From 7a271b58f6f3bbebcd76e6fea3acc69bfb6808c2 Mon Sep 17 00:00:00 2001 From: Tyler Akins Date: Fri, 23 Jan 2015 18:05:27 +0000 Subject: [PATCH] In case of error, pipe something in This lets me run tests in a terminal. If I mess up and the terminal is being read by `cat` or similar, this input is used instead and now my tests will automatically fail properly. --- run-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests b/run-tests index 5879324..137b555 100755 --- a/run-tests +++ b/run-tests @@ -9,7 +9,7 @@ for TEST in tests/*.expected; do BASE="${TEST%.expected}" echo -n "$BASE ... " - ( + echo "Do not read this input" | ( . "${BASE}.env" . ./mo "${BASE}.template" ) | diff -wU5 - "${TEST}" > "${BASE}.diff"