selftest/selftest.pl: print out '[expanded] command: ' in all error cases
authorStefan Metzmacher <metze@samba.org>
Thu, 29 Dec 2016 11:35:48 +0000 (12:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Jan 2017 12:54:17 +0000 (13:54 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
selftest/selftest.pl

index ced13f243414d2f8668687d15bafa1e9babb0572..e1c34290a02348e16b6524c17b7e9cb325da266e 100755 (executable)
@@ -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);