]> The Tcpdump Group git mirrors - tcpdump/commitdiff
TESTrun: put all redirection at the end of the command line.
authorGuy Harris <[email protected]>
Sun, 14 Jun 2020 00:17:05 +0000 (17:17 -0700)
committerGuy Harris <[email protected]>
Sun, 14 Jun 2020 00:17:05 +0000 (17:17 -0700)
That makes it a bit easier to read.

tests/TESTrun

index 52443a772c5016aac3dca64dd1c6916abcc69e15..bdc6555a9a77a7fb789e250402d4f46635171370 100755 (executable)
@@ -94,7 +94,7 @@ sub runtest {
 
     # we used to do this as a nice pipeline, but the problem is that $r fails to
     # to be set properly if the tcpdump core dumps.
-    $r = system "$TCPDUMP 2>${rawstderrlog} -# -n -r $input $options >tests/NEW/${outputbase}";
+    $r = system "$TCPDUMP -# -n -r $input $options >tests/NEW/${outputbase} 2>${rawstderrlog}";
     if($r == -1) {
         # failed to start due to error.
         $status = $!;