]> granicus.if.org Git - php/commitdiff
Remove .post files only for passing tests
authorLevi Morrison <levim@php.net>
Thu, 25 Jul 2019 15:48:29 +0000 (09:48 -0600)
committerLevi Morrison <levim@php.net>
Thu, 25 Jul 2019 15:48:39 +0000 (09:48 -0600)
This allows the sh script for failing tests with --POST-- to work

run-tests.php

index d5638aad996086c16f5f96ecbea6247b14e7ddbb..c5f09fa8aac4beebf5e9a2f401a3e39cd5399798 100755 (executable)
@@ -1994,8 +1994,6 @@ COMMAND $cmd
                }
        }
 
-       @unlink($tmp_post);
-
        $leaked = false;
        $passed = false;
 
@@ -2207,6 +2205,10 @@ COMMAND $cmd
                $restype[] = 'WARN';
        }
 
+       if ($passed) {
+               @unlink($tmp_post);
+       }
+
        if (!$passed) {
                if (isset($section_text['XFAIL'])) {
                        $restype[] = 'XFAIL';