Skip to content

Commit 0aae889

Browse files
authored
Skip tests that are tested explicitly under minimal runtime (#25119)
Skip tests that are tested explicitly under minimal runtime, from being run in minimal0 test mode. This way tests that verify minimal runtime behavior as part of e.g. `core0`, `core1` and so on, won't croak when attempted to be run under `minimal0.test_foo` - they are already covered so that mode doesn't apply.
1 parent 1ba1441 commit 0aae889

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,8 @@ def also_with_minimal_runtime(f):
629629
def metafunc(self, with_minimal_runtime, *args, **kwargs):
630630
if DEBUG:
631631
print('parameterize:minimal_runtime=%s' % with_minimal_runtime)
632-
assert self.get_setting('MINIMAL_RUNTIME') is None
632+
if self.get_setting('MINIMAL_RUNTIME'):
633+
self.skipTest('MINIMAL_RUNTIME already enabled in test config')
633634
if with_minimal_runtime:
634635
if self.get_setting('MODULARIZE') == 'instance' or self.get_setting('WASM_ESM_INTEGRATION'):
635636
self.skipTest('MODULARIZE=instance is not compatible with MINIMAL_RUNTIME')

0 commit comments

Comments
 (0)