Merge pull request #2384 from smcv/dedup-report-err

libtest.sh: Remove duplicate ERR trap and report_err()
This commit is contained in:
Luca Bruno 2021-06-22 11:36:51 +00:00 committed by GitHub
commit 47b7b1efc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -46,14 +46,6 @@ run_exit_cmds() {
}
trap run_exit_cmds EXIT
report_err () {
local exit_status="$?"
{ { local BASH_XTRACEFD=3; } 2> /dev/null
echo "Unexpected nonzero exit status $exit_status while running: $BASH_COMMAND" >&2
} 3> /dev/null
}
trap report_err ERR
save_core() {
if [ -e core ]; then
cp core "$test_srcdir/core"