aboutsummaryrefslogtreecommitdiffstats
path: root/run-qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-01 19:09:02 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-01 19:25:51 +0200
commitab01045bcdb6ec7555fe0364d75139fcfa361991 (patch)
tree5a94d1ca07bf444d8f16fa7ec4b54d818ae563a0 /run-qtest
parent72e5c734193a3fbc100459e4c84afaeb84cd76e7 (diff)
downloadqpdf-ab01045bcdb6ec7555fe0364d75139fcfa361991.tar.zst
qtest: don't run coverage when TESTS is given
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')