Skip to content

Commit 827eb87

Browse files
committed
[test] support skipping tests
1 parent 0921d16 commit 827eb87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/sanity/testcfg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def __init__(self, context, root, section, additional=[]):
6767

6868
def Ls(self, path):
6969
def SelectTest(name):
70-
return os.path.isdir(os.path.join(path, name))
70+
test = os.path.join(path, name)
71+
return os.path.isdir(test) and not os.path.exists(os.path.join(test, 'skipped'))
7172
return [f[0:] for f in os.listdir(path) if SelectTest(f)]
7273

7374
def ListTests(self, current_path, path, arch, mode, nwdir):

0 commit comments

Comments
 (0)