summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-11-30 11:42:07 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-11-30 11:42:07 +0100
commit48725d89aa537a5e29c10aadb337c12f3cb0bfb5 (patch)
tree147f2e2fb618e3f97e712831235aee06b2423a79 /run-tests.php
parent89891d75c3d14909a863c133621d515aa81696e1 (diff)
parent15073d8e1da5f7c140acbed0bee0c09439a1cfac (diff)
downloadphp-git-48725d89aa537a5e29c10aadb337c12f3cb0bfb5.tar.gz
Merge branch 'PHP-8.0'
* PHP-8.0: Fixed bug #80437
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php10
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, "