File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -238,21 +238,16 @@ def show():
238
238
atexit .register (show )
239
239
240
240
241
- def replace_legacy_suite_names (args ):
242
- newargs = []
243
-
241
+ def error_on_legacy_suite_names (args ):
244
242
for a in args :
245
243
if a .startswith ('wasm' ) and not any (a .startswith (p ) for p in ('wasm2js' , 'wasmfs' , 'wasm64' )):
246
- print ('warning: test suites in test_core.py have been renamed from `wasm` to `core`. Please use the new names' )
247
- a = a .replace ('wasm' , 'core' , 1 )
248
- newargs .append (a )
249
-
250
- return newargs
244
+ new = a .replace ('wasm' , 'core' , 1 )
245
+ utils .exit_with_error ('`%s` test suite has been replaced with `%s`' , a , new )
251
246
252
247
253
248
def load_test_suites (args , modules ):
254
249
loader = unittest .TestLoader ()
255
- args = replace_legacy_suite_names (args )
250
+ error_on_legacy_suite_names (args )
256
251
unmatched_test_names = set (args )
257
252
suites = []
258
253
for m in modules :
You can’t perform that action at this time.
0 commit comments