diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-30 11:42:07 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-30 11:42:07 +0100 |
commit | 48725d89aa537a5e29c10aadb337c12f3cb0bfb5 (patch) | |
tree | 147f2e2fb618e3f97e712831235aee06b2423a79 /run-tests.php | |
parent | 89891d75c3d14909a863c133621d515aa81696e1 (diff) | |
parent | 15073d8e1da5f7c140acbed0bee0c09439a1cfac (diff) | |
download | php-git-48725d89aa537a5e29c10aadb337c12f3cb0bfb5.tar.gz |
Merge branch 'PHP-8.0'
* PHP-8.0:
Fixed bug #80437
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/run-tests.php b/run-tests.php index 7cb8fed1be..d0eaa2b638 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2833,7 +2833,8 @@ COMMAND $cmd } // write .sh - $sh_script = <<<SH + if (strpos($log_format, 'S') !== false) { + $sh_script = <<<SH #!/bin/sh case "$1" in @@ -2851,10 +2852,11 @@ case "$1" in ;; esac SH; - if (strpos($log_format, 'S') !== false && file_put_contents($sh_filename, $sh_script) === false) { - error("Cannot create test shell script - $sh_filename"); + if (file_put_contents($sh_filename, $sh_script) === false) { + error("Cannot create test shell script - $sh_filename"); + } + chmod($sh_filename, 0755); } - chmod($sh_filename, 0755); // write .log if (strpos($log_format, 'L') !== false && file_put_contents($log_filename, " |