diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-12-29 12:35:48 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-01-10 13:54:17 +0100 |
commit | 1204b4432d23556bc8af32b0388141ae555cacb2 (patch) | |
tree | 4d8333a32bfabd1c898da73674af1c0569f30e58 /selftest/selftest.pl | |
parent | 133416a8b9eaa7b84ce6b7144a737647183ff1e0 (diff) | |
download | samba-1204b4432d23556bc8af32b0388141ae555cacb2.tar.gz |
selftest/selftest.pl: print out '[expanded] command: ' in all error cases
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-x | selftest/selftest.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl index ced13f24341..e1c34290a02 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -142,9 +142,13 @@ sub run_testsuite($$$$$) Subunit::progress_pop(); if ($? == -1) { + print "command: $cmd\n"; + printf "expanded command: %s\n", expand_environment_strings($cmd); Subunit::end_testsuite($name, "error", "Unable to run $cmd: $!"); exit(1); } elsif ($? & 127) { + print "command: $cmd\n"; + printf "expanded command: %s\n", expand_environment_strings($cmd); Subunit::end_testsuite($name, "error", sprintf("%s died with signal %d, %s coredump\n", $cmd, ($? & 127), ($? & 128) ? 'with' : 'without')); exit(1); |