From 7bb87c31f84eff72c0881d2bc17d14044eb879d0 Mon Sep 17 00:00:00 2001 From: Melvyn Sopacua Date: Mon, 21 Oct 2002 08:52:45 +0000 Subject: [PATCH] Adds a 'reason' for skipping a test. # See modifications on ext/xml/tests/007.phpt for example --- run-tests.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index c668b2a8b7..ac599bc7c5 100755 --- a/run-tests.php +++ b/run-tests.php @@ -433,8 +433,11 @@ TEST $file save_text($tmp_skipif, $section_text['SKIPIF']); $output = `$php $tmp_skipif`; @unlink($tmp_skipif); - if (trim($output) == 'skip') { + if (ereg("^skip", trim($output))){ echo "SKIP $tested\n"; + $reason = (ereg("^skip\s*(.+)$", trim($output))) ? ereg_replace("^skip\s*(.+)$", "\\1", trim($output)) : FALSE; + if($reason) + print "\treason: $reason\n"; return 'SKIPPED'; } } -- 2.40.0