File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1476,6 +1476,13 @@ def SplitPath(s):
1476
1476
stripped = [ c .strip () for c in s .split ('/' ) ]
1477
1477
return [ Pattern (s ) for s in stripped if len (s ) > 0 ]
1478
1478
1479
+ def NormalizePath (path ):
1480
+ # strip the extra path information of the specified test
1481
+ if path .startswith ('test/' ):
1482
+ path = path [5 :]
1483
+ if path .endswith ('.js' ):
1484
+ path = path [:- 3 ]
1485
+ return path
1479
1486
1480
1487
def GetSpecialCommandProcessor (value ):
1481
1488
if (not value ) or (value .find ('@' ) == - 1 ):
@@ -1548,7 +1555,7 @@ def Main():
1548
1555
else :
1549
1556
paths = [ ]
1550
1557
for arg in args :
1551
- path = SplitPath (arg )
1558
+ path = SplitPath (NormalizePath ( arg ) )
1552
1559
paths .append (path )
1553
1560
1554
1561
# Check for --valgrind option. If enabled, we overwrite the special
You can’t perform that action at this time.
0 commit comments