projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a55ab
)
libtest.sh: Remove duplicate ERR trap and report_err()
author
Simon McVittie
<smcv@collabora.com>
Tue, 22 Jun 2021 09:37:39 +0000
(10:37 +0100)
committer
Simon McVittie
<smcv@collabora.com>
Tue, 22 Jun 2021 09:37:39 +0000
(10:37 +0100)
Since #2377 was merged, this is in libtest-core.sh, which is sourced by
libtest.sh.
Signed-off-by: Simon McVittie <smcv@collabora.com>
tests/libtest.sh
patch
|
blob
|
history
diff --git
a/tests/libtest.sh
b/tests/libtest.sh
index bf34cd5e795d63c9a888c06b7e9ba3b65918fb4c..260b8d1d9d29abd36f461fce1008b1f6493bec96 100755
(executable)
--- a/
tests/libtest.sh
+++ b/
tests/libtest.sh
@@
-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"