libtest-core: On failure, make it clearer what has happened
authorSimon McVittie <smcv@collabora.com>
Sun, 18 Apr 2021 11:45:24 +0000 (12:45 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 18 Jun 2021 08:49:53 +0000 (09:49 +0100)
commitd7cdde5d3445e004c783f86a985d58725f3e6646
treea125727c38f564c372532f197b4d010be95e10f8
parentc934fc8f9904d66c443d784ec3f93209b7b9f1b0
libtest-core: On failure, make it clearer what has happened

If we fail as a result of `set -x`, It's often not completely obvious
which command failed or how. Use a trap on ERR to show the command that
failed, and its exit status.

Signed-off-by: Simon McVittie <smcv@collabora.com>
tests/kolainst/libtest-core.sh