aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7/fix-tests-devserver.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-30 00:20:07 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-02 01:04:52 +0200
commit63010da997e7a37df323a7d0343453fde63600ed (patch)
treef8a1b253e4541fa87391f3f06731cf789eb12ed9 /community/php7/fix-tests-devserver.patch
parent128b0f0e848405a7dc0b9aea560cc809d0b13084 (diff)
downloadaports-63010da997e7a37df323a7d0343453fde63600ed.tar.bz2
aports-63010da997e7a37df323a7d0343453fde63600ed.tar.xz
community/php7: run subset of tests on check
Diffstat (limited to 'community/php7/fix-tests-devserver.patch')
-rw-r--r--community/php7/fix-tests-devserver.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/php7/fix-tests-devserver.patch b/community/php7/fix-tests-devserver.patch
new file mode 100644
index 0000000000..3f8220c5a1
--- /dev/null
+++ b/community/php7/fix-tests-devserver.patch
@@ -0,0 +1,23 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Mon, 01 May 2017 01:33:00 +0200
+Subject: [PATCH] Fix tests failing due to extra message from built-in web server
+
+Remove messages like:
+
+ PHP 7.1.4 Development Server started at Mon May 1 00:42:39 2017
+
+from test outputs, because tests do not expect them. I have no clue what
+happens here...
+
+--- a/run-tests.php
++++ b/run-tests.php
+@@ -1918,6 +1918,9 @@
+ // Does the output match what is expected?
+ $output = preg_replace("/\r\n/", "\n", trim($out));
+
++ // Remove message from built-in development server.
++ $output = preg_replace("/^PHP [0-9.]+ Development Server started at .*\n\n?/m", "", $output);
++
+ /* when using CGI, strip the headers from the output */
+ $headers = "";
+