]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Temporary fix for GitHub issue #820
authorGuy Harris <[email protected]>
Sun, 2 Feb 2020 19:09:44 +0000 (11:09 -0800)
committerGuy Harris <[email protected]>
Sun, 2 Feb 2020 19:09:44 +0000 (11:09 -0800)
Create the tests/.passed and tests/.failed files used by test shell
scripts; once we've gotten rid of those scripts, this should no longer
be necessary.

tests/TESTrun

index 702ecbda4ef269fbdb2d4ecd2f58074f8b2b0782..d645f3b1e957d5582a482c1c27f5ee000bea7f0f 100755 (executable)
@@ -41,6 +41,16 @@ require 'testfuncs.pm';
 
 $passedcount = 0;
 $failedcount = 0;
+#
+# XXX - create files used by shell scripts; we can remove this once we
+# no longer use shell scripts in tests.
+#
+open(PASSEDCOUNT, ">", "tests/.passed");
+print PASSEDCOUNT "${passedcount}\n";
+close(PASSEDCOUNT);
+open(FAILEDCOUNT, ">", "tests/.failed");
+print FAILEDCOUNT "${failedcount}\n";
+close(FAILEDCOUNT);
 my $failureoutput=$origdir . "/tests/failure-outputs.txt";
 
 # truncate the output file