summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-08-27 18:15:02 +0200
committerUrban Müller2024-08-27 18:15:02 +0200
commitc5ecb9054f8e5148bb777d9fb44d48c01a190838 (patch)
tree4b58737f0478b32c9977dea0c1ff9e784a7db7d1
parentc60e76906060423a232ecc8ad828925a638d0fa5 (diff)
downloaditools-c5ecb9054f8e5148bb777d9fb44d48c01a190838.tar.gz
itools-c5ecb9054f8e5148bb777d9fb44d48c01a190838.tar.bz2
itools-c5ecb9054f8e5148bb777d9fb44d48c01a190838.zip
handle --debug argument now used by slowtests.sh
-rwxr-xr-xtest/it_error.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/it_error.t b/test/it_error.t
index 46f04d3..4d9e2ad 100755
--- a/test/it_error.t
+++ b/test/it_error.t
@@ -2,11 +2,12 @@
<?php
# TESTFLAGS SLOW
+$opts = it::getopt("Usage: it_error.t [TESTNUM]");
it::$error_context = fn() => ['blockmail' => 0, 'to' => "mueller", 'toscreen' => 1];
$GLOBALS['debug_verboseerrors'] = 1;
-if ($argv[1])
- foo($argv[1]);
+if ($opts['args'][0])
+ foo($opts['args'][0]);
else {
foreach (range(1, 12) as $testnum) {
$errlines = explode("\n", it::exec('{cmd} {testnum} |& cat', ['cmd' => $argv[0], 'testnum' => $testnum]));