diff options
author | Urban Müller | 2024-08-27 18:15:02 +0200 |
---|---|---|
committer | Urban Müller | 2024-08-27 18:15:02 +0200 |
commit | c5ecb9054f8e5148bb777d9fb44d48c01a190838 (patch) | |
tree | 4b58737f0478b32c9977dea0c1ff9e784a7db7d1 | |
parent | c60e76906060423a232ecc8ad828925a638d0fa5 (diff) | |
download | itools-c5ecb9054f8e5148bb777d9fb44d48c01a190838.tar.gz itools-c5ecb9054f8e5148bb777d9fb44d48c01a190838.tar.bz2 itools-c5ecb9054f8e5148bb777d9fb44d48c01a190838.zip |
handle --debug argument now used by slowtests.sh
-rwxr-xr-x | test/it_error.t | 5 |
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])); |