aboutsummaryrefslogtreecommitdiffstats
path: root/run-qtest
diff options
context:
space:
mode:
Diffstat (limited to 'run-qtest')
-rwxr-xr-xrun-qtest12
1 files changed, 10 insertions, 2 deletions
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')