summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2022-12-14 23:30:46 +0200
committerToomas Soome <tsoome@me.com>2022-12-16 20:11:46 +0200
commitf4d2cf74960df993f48d42d323f16867fc6b9bdf (patch)
tree01bfa4d1453dcb912ae49aa64f28f7be25401163
parentfb2301db8e408458b542c1f5fa07b5b8a3a95395 (diff)
downloadillumos-joyent-f4d2cf74960df993f48d42d323f16867fc6b9bdf.tar.gz
15253 14993 broke test-runner -l option
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com> Approved by: Dan McDonald <danmcd@mnx.io>
-rw-r--r--usr/src/test/test-runner/cmd/run3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/test/test-runner/cmd/run b/usr/src/test/test-runner/cmd/run
index 8399c3203a..9e2e53333d 100644
--- a/usr/src/test/test-runner/cmd/run
+++ b/usr/src/test/test-runner/cmd/run
@@ -924,6 +924,9 @@ def filter_tests(testrun, options):
if not m:
continue
group, test = m.group(1, 2)
+ m = re.match(re.escape(options.testdir) + r'(.*)', group)
+ if m:
+ group = m.group(1)
try:
failed[group].append(test)
except KeyError: