mirror of https://github.com/MidnightCommander/mc
Use trap to catch and report failures.
This commit is contained in:
parent
0cfb000426
commit
4d7182a39f
|
@ -5,6 +5,8 @@
|
|||
|
||||
set -e
|
||||
|
||||
trap 'echo >&2 "ERROR: Test not completed, exit with code $?"; exit 1' exit
|
||||
|
||||
distcheck() {
|
||||
id="$1"
|
||||
shift
|
||||
|
@ -70,4 +72,5 @@ else
|
|||
echo "rpmbuild not found"
|
||||
fi
|
||||
|
||||
trap - exit
|
||||
echo "All done. No fatal errors. Please check test*.err files."
|
||||
|
|
Loading…
Reference in New Issue