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