File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ class RunnerCore(unittest.TestCase):
78
78
stderr_redirect = STDOUT # This avoids cluttering the test runner output, which is stderr too, with compiler warnings etc.
79
79
# Change this to None to get stderr reporting, for debugging purposes
80
80
81
+ def skipme (self ): # used by tests we ask on the commandline to be skipped, see right before call to unittest.main
82
+ return self .skip ('requested to be skipped' )
83
+
81
84
def setUp (self ):
82
85
global Settings
83
86
Settings .reset ()
@@ -10187,6 +10190,17 @@ def test_relooper(self):
10187
10190
elif len (JS_ENGINES ) < total_engines :
10188
10191
print 'WARNING: Not all the JS engines in JS_ENGINES appears to work, ignoring those.'
10189
10192
10193
+ # Skip requested tests
10194
+
10195
+ for i in range (len (sys .argv )):
10196
+ arg = sys .argv [i ]
10197
+ if arg .startswith ('skip:' ):
10198
+ which = arg .split ('skip:' )[1 ]
10199
+ print >> sys .stderr , 'will skip "%s"' % which
10200
+ exec (which + ' = RunnerCore.skipme' )
10201
+ sys .argv [i ] = ''
10202
+ sys .argv = filter (lambda arg : arg , sys .argv )
10203
+
10190
10204
# Go
10191
10205
10192
10206
unittest .main ()
You can’t perform that action at this time.
0 commit comments