summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/run_tests.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/run_tests.pl b/test/run_tests.pl
index 66697db0cb..9c5ade10fc 100644
--- a/test/run_tests.pl
+++ b/test/run_tests.pl
@@ -86,5 +86,8 @@ runtests(map { abs2rel($_, rel2abs(curdir())); } sort keys %tests);
sub find_matching_tests {
my ($glob) = @_;
+ if ($glob =~ m|^[\d\[\]\?\-]+$|) {
+ return glob(catfile($recipesdir,"$glob-*.t"));
+ }
return glob(catfile($recipesdir,"*-$glob.t"));
}