File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
graalpython/com.oracle.graal.python.test/src/tests Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (c) 2019, 2021 , Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2019, 2022 , Oracle and/or its affiliates. All rights reserved.
2
2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3
3
#
4
4
# The Universal Permissive License (UPL), Version 1.0
40
40
import glob
41
41
import os
42
42
import subprocess
43
- import test
44
-
45
43
import sys
44
+ import test
46
45
47
46
if os .environ .get ("ENABLE_CPYTHON_TAGGED_UNITTESTS" ) == "true" or __name__ == "__main__" :
48
47
TAGS_DIR = os .path .join (os .path .dirname (__file__ ), "unittest_tags" )
@@ -139,7 +138,14 @@ class TestTaggedUnittests(unittest.TestCase):
139
138
total = 1
140
139
assert selected < total
141
140
142
- working_tests = collect_working_tests ()[selected ::total ]
141
+ working_tests = collect_working_tests ()
142
+ selection = os .environ .get ('TAGGED_UNITTEST_SELECTION' )
143
+ if not selection :
144
+ working_tests = working_tests [selected ::total ]
145
+ else :
146
+ selection = set (s .strip () for s in selection .split ("," ))
147
+ working_tests = [x for x in working_tests if x in selection ]
148
+
143
149
for idx , working_test in enumerate (working_tests ):
144
150
fn = make_test_function (working_test )
145
151
fn .__name__ = "%s[%d/%d]" % (fn .__name__ , idx + 1 , len (working_tests ))
You can’t perform that action at this time.
0 commit comments