From e2cb8ec02c1713d1c9a581bf6740b57e2d4a6ab2 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sat, 9 Sep 2000 00:37:39 +0000 Subject: [PATCH] * don't require "POST" section to be present (TEST, FILE and EXPECT are enough) --- run-tests.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 66c7d8f6c4..6b6e895e03 100755 --- a/run-tests.php +++ b/run-tests.php @@ -380,7 +380,11 @@ function run_test($file) { putenv("b="); putenv("c="); putenv("d="); - $cmd = "$php -f $tmpfile[FILE] < $tmpfile[POST]"; + if (isset($fps["POST"])) { + $cmd = "$php -f $tmpfile[FILE] < $tmpfile[POST]"; + } else { + $cmd = "$php -f $tmpfile[FILE]"; + } $ofp = @fopen($tmpfile["OUTPUT"], "w"); if (!$ofp) { writeln("Error: could not write to output file"); -- 2.50.1