From c5ecb9054f8e5148bb777d9fb44d48c01a190838 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 27 Aug 2024 18:15:02 +0200 Subject: handle --debug argument now used by slowtests.sh --- test/it_error.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/it_error.t') 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 @@ ['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])); -- cgit v1.2.3