From ab01045bcdb6ec7555fe0364d75139fcfa361991 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 1 May 2022 13:09:02 -0400 Subject: qtest: don't run coverage when TESTS is given --- run-qtest | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'run-qtest') diff --git a/run-qtest b/run-qtest index 73b0f485..1160589d 100755 --- a/run-qtest +++ b/run-qtest @@ -58,8 +58,16 @@ while (@ARGV) { # On Windows, a literal glob in quotes is expanded by the # shell, so we have to handle globs when expanded by the - # shell. - push(@tc, shift(@ARGV)); + # shell by consuming arguments until the next --. + + my $t = shift(@ARGV); + if (exists $ENV{'TESTS'}) + { + # No point enabling coverage if we're intentionally + # running only a subset of tests. + next; + } + push(@tc, $t); } } elsif ($arg eq '--env') -- cgit v1.2.3-70-g09d2