summaryrefslogtreecommitdiffstats
path: root/src/test/docker-test-helper.sh
diff options
context:
space:
mode:
authorLoic Dachary <ldachary@redhat.com>2015-05-30 16:46:26 +0200
committerLoic Dachary <ldachary@redhat.com>2015-07-08 16:14:01 +0200
commitd791a722a7b28a0f0fb41d8ad31e60d145411056 (patch)
tree07a3a5f8b41a25435775011478cd9e9e45247282 /src/test/docker-test-helper.sh
parenttests: ceph-helpers.sh reduce kill_daemon verbosity (diff)
downloadceph-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-xsrc/test/docker-test-helper.sh2
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)