diff options
author | Loic Dachary <ldachary@redhat.com> | 2015-05-30 16:46:26 +0200 |
---|---|---|
committer | Loic Dachary <ldachary@redhat.com> | 2015-07-08 16:14:01 +0200 |
commit | d791a722a7b28a0f0fb41d8ad31e60d145411056 (patch) | |
tree | 07a3a5f8b41a25435775011478cd9e9e45247282 /src/test/docker-test-helper.sh | |
parent | tests: ceph-helpers.sh reduce kill_daemon verbosity (diff) | |
download | ceph-d791a722a7b28a0f0fb41d8ad31e60d145411056.tar.xz ceph-d791a722a7b28a0f0fb41d8ad31e60d145411056.zip |
tests: improve shell output readability
Modify the test traces to include the file name in addition to the
function and line name. It makes it easier to locate the faulty line
without going back to the test name.
Format the trace lines to be emacs friendly (filename:lineno) so that
C-x ` or C-c C-c jumps to the right file and the right line when running
the test with M-x compile.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Diffstat (limited to 'src/test/docker-test-helper.sh')
-rwxr-xr-x | src/test/docker-test-helper.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/docker-test-helper.sh b/src/test/docker-test-helper.sh index 9ca0809c04d..797e37c8df0 100755 --- a/src/test/docker-test-helper.sh +++ b/src/test/docker-test-helper.sh @@ -284,7 +284,7 @@ function main_docker() { ;; --verbose) set -xe - PS4='${FUNCNAME[0]}: $LINENO: ' + PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}: ' shift ;; -s|--shell) |