forked from M-Labs/nac3
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
This commit is contained in:
parent
64b94955fe
commit
2a0caf931f
|
@ -4,7 +4,9 @@ set -e
|
||||||
|
|
||||||
for demo in src/*.py; do
|
for demo in src/*.py; do
|
||||||
echo "checking $demo..."
|
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
|
done
|
||||||
|
|
||||||
echo "PASSED"
|
echo "PASSED"
|
||||||
|
|
Loading…
Reference in New Issue