From 74551237c1d6d6c1529aa1e814a385868ff83f52 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Sun, 28 Apr 2024 21:47:13 +0200 Subject: [PATCH 1/2] Skip online tests by default Closes GH-14058 --- run-tests.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/run-tests.php b/run-tests.php index bb422e41c0fe4..e27e13c2dedec 100755 --- a/run-tests.php +++ b/run-tests.php @@ -83,9 +83,11 @@ function show_usage(): void -s Write output to . - -x Sets 'SKIP_SLOW_TESTS' environmental variable. + -x Sets 'SKIP_SLOW_TESTS' environment variable. - --offline Sets 'SKIP_ONLINE_TESTS' environmental variable. + --online Prevents setting the 'SKIP_ONLINE_TESTS' environment variable. + + --offline Sets 'SKIP_ONLINE_TESTS' environment variable (default). --verbose -v Verbose mode. @@ -364,6 +366,7 @@ function main(): void $context_line_count = 3; $num_repeats = 1; $show_progress = true; + $online = null; $cfgtypes = ['show', 'keep']; $cfgfiles = ['skip', 'php', 'clean', 'out', 'diff', 'exp', 'mem']; @@ -567,8 +570,11 @@ function main(): void case 'x': $environment['SKIP_SLOW_TESTS'] = 1; break; + case '--online': + $online = true; + break; case '--offline': - $environment['SKIP_ONLINE_TESTS'] = 1; + $online = false; break; case '--shuffle': $shuffle = true; @@ -652,6 +658,13 @@ function main(): void } } + if ($online === null && !isset($environment['SKIP_ONLINE_TESTS'])) { + $online = false; + } + if ($online !== null) { + $environment['SKIP_ONLINE_TESTS'] = $online ? '0' : '1'; + } + if ($selected_tests && count($test_files) === 0) { echo "No tests found.\n"; return; From 8c296e317b2c31f366e14af57eb838f609da0d89 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Sun, 28 Apr 2024 21:52:43 +0200 Subject: [PATCH 2/2] Replace xhtml image with base64 data --- sapi/fpm/status.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/fpm/status.html.in b/sapi/fpm/status.html.in index d3b6d5efd3e59..291ba8aa9bee1 100644 --- a/sapi/fpm/status.html.in +++ b/sapi/fpm/status.html.in @@ -72,7 +72,7 @@

- Valid XHTML 1.0 Transitional + Valid XHTML 1.0 Transitional