tests/run-tests.py
changeset 41138 8ddc5d8bea25
parent 40989 e10adebf8176
child 41141 89d103fc9c19
--- a/tests/run-tests.py	Tue Jan 08 09:43:24 2019 -0800
+++ b/tests/run-tests.py	Tue Jan 08 17:52:39 2019 -0800
@@ -2794,9 +2794,10 @@
             if not (os.path.basename(t).startswith(b'test-')
                     and (t.endswith(b'.py') or t.endswith(b'.t'))):
 
-                m = testcasepattern.match(t)
+                m = testcasepattern.match(os.path.basename(t))
                 if m is not None:
-                    t, _, casestr = m.groups()
+                    t_basename, _, casestr = m.groups()
+                    t = os.path.join(os.path.dirname(t), t_basename)
                     if casestr:
                         case = casestr.split(b'#')
                 else: