From 2a0caf931f00d0b86107d5935c178d1b70efd1a6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 23 Jan 2022 11:15:11 +0800 Subject: [PATCH] nac3standalone: work around bash mess with exit codes of substituted processes https://unix.stackexchange.com/questions/376114/how-to-detect-an-error-using-process-substitution --- nac3standalone/demo/check_demos.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nac3standalone/demo/check_demos.sh b/nac3standalone/demo/check_demos.sh index ca275588f..f9ba67b80 100755 --- a/nac3standalone/demo/check_demos.sh +++ b/nac3standalone/demo/check_demos.sh @@ -4,7 +4,9 @@ set -e for demo in src/*.py; do echo "checking $demo..." - diff -Nau <(./interpret_demo.py $demo) <(./run_demo.sh $demo) + ./interpret_demo.py $demo > interpreted.log + ./run_demo.sh $demo > run.log + diff -Nau interpreted.log run.log done echo "PASSED"