summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorLevi Morrison <levim@php.net>2019-07-25 09:48:29 -0600
committerLevi Morrison <levim@php.net>2019-07-25 09:48:39 -0600
commit5649267b257c78e46a934434c0bff894e0b5b694 (patch)
tree479aca01603ea0b50f4a6dc50ba92f7730d7986a /run-tests.php
parent8f384bea93dbc0de73fa66d58b70f63c03547606 (diff)
downloadphp-git-5649267b257c78e46a934434c0bff894e0b5b694.tar.gz
Remove .post files only for passing tests
This allows the sh script for failing tests with --POST-- to work
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index d5638aad99..c5f09fa8aa 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -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';