From d791a722a7b28a0f0fb41d8ad31e60d145411056 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sat, 30 May 2015 16:46:26 +0200 Subject: 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 --- src/test/docker-test-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/docker-test-helper.sh') 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) -- cgit v1.2.3