From ba51b3973256e2250f536f32ef897d851a45744d Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 14 Apr 2023 16:25:54 -0700 Subject: runtests: call timestampskippedevents() in singletest ..rather than by the runner --- tests/runner.pm | 10 ---------- tests/runtests.pl | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'tests') diff --git a/tests/runner.pm b/tests/runner.pm index 5d6aba366..8ada81d91 100644 --- a/tests/runner.pm +++ b/tests/runner.pm @@ -105,13 +105,6 @@ sub prepro { return main::prepro(@_); } -####################################################################### -# Call main's timestampskippedevents -# TODO: figure out where this should live -sub timestampskippedevents { - return main::timestampskippedevents(@_); -} - ####################################################################### # Call main's runclient # TODO: move this into a helper package @@ -493,7 +486,6 @@ sub singletest_prepare { if(@inputfile || $filename) { if(!$filename) { logmsg "ERROR: section client=>file has no name attribute\n"; - timestampskippedevents($testnum); return -1; } my $fileContent = join('', @inputfile); @@ -631,7 +623,6 @@ sub singletest_run { if(! -f $CMDLINE) { logmsg "The tool set in the test case for this: '$tool' does not exist\n"; - timestampskippedevents($testnum); return (-1, 0, 0, "", "", 0); } $DBGCURL=$CMDLINE; @@ -639,7 +630,6 @@ sub singletest_run { if($fail_due_event_based) { logmsg "This test cannot run event based\n"; - timestampskippedevents($testnum); return (-1, 0, 0, "", "", 0); } diff --git a/tests/runtests.pl b/tests/runtests.pl index 9dc9eb134..683f38c41 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -1851,6 +1851,7 @@ sub singletest { return $errorreturncode; } elsif($error == -2) { + timestampskippedevents($testnum); return $error; } elsif($error > 0) { -- cgit v1.2.1