Skip to content

Commit

Permalink
Remove .post files only for passing tests
Browse files Browse the repository at this point in the history
This allows the sh script for failing tests with --POST-- to work
  • Loading branch information
morrisonlevi committed Jul 25, 2019
1 parent 8f384be commit 5649267
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -1994,8 +1994,6 @@ function run_test($php, $file, $env)
}
}

@unlink($tmp_post);

$leaked = false;
$passed = false;

Expand Down Expand Up @@ -2207,6 +2205,10 @@ function run_test($php, $file, $env)
$restype[] = 'WARN';
}

if ($passed) {
@unlink($tmp_post);
}

if (!$passed) {
if (isset($section_text['XFAIL'])) {
$restype[] = 'XFAIL';
Expand Down

0 comments on commit 5649267

Please sign in to comment.