summaryrefslogtreecommitdiff
path: root/test/runtest
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-02-25 21:36:12 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-02-25 21:36:12 +0000
commit4951c8860bd61394ca3a31d081cc67af61048434 (patch)
treeeb6bcf784ab7db0dbea00fdb0ff30550fc059930 /test/runtest
parentb9df1829d6afa37ef6576d04fc8845c1d20269b0 (diff)
Testsuite: set cmdline before running testcase not after
Diffstat (limited to 'test/runtest')
-rwxr-xr-xtest/runtest4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/runtest b/test/runtest
index b82b6b98c..6b6586c10 100755
--- a/test/runtest
+++ b/test/runtest
@@ -3853,13 +3853,13 @@ foreach $test (@test_list)
# command was run and waited for, and 3 if a command
# was run and not waited for (usually a daemon or server startup).
+ $0 = "[runtest $testno]";
+
my($commandname) = '';
my($expectrc) = 0;
my($rc, $run_extra) = run_command($testno, \$subtestno, \$expectrc, \$commandname, $TEST_STATE);
my($cmdrc) = $?;
- $0 = "[runtest $testno]";
-
if ($debug) {
print ">> rc=$rc cmdrc=$cmdrc\n";
if (defined $run_extra) {