diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-01 19:09:02 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-01 19:25:51 +0200 |
commit | ab01045bcdb6ec7555fe0364d75139fcfa361991 (patch) | |
tree | 5a94d1ca07bf444d8f16fa7ec4b54d818ae563a0 /run-qtest | |
parent | 72e5c734193a3fbc100459e4c84afaeb84cd76e7 (diff) | |
download | qpdf-ab01045bcdb6ec7555fe0364d75139fcfa361991.tar.zst |
qtest: don't run coverage when TESTS is given
Diffstat (limited to 'run-qtest')
-rwxr-xr-x | run-qtest | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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') |