File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,13 @@ def load_ci_build():
33
33
34
34
35
35
class CIBuildTestCase (unittest .TestCase ):
36
- def test_parse_gpu_targets (self ):
36
+ def test_parse_gpu_targets_spaces (self ):
37
37
targets = ["gfx908" , "gfx940" , "gfx1201" ]
38
-
39
38
r = ci_build .parse_gpu_targets (" " .join (targets ))
40
39
self .assertEqual (r , targets )
41
40
41
+ def test_parse_gpu_targets_commas (self ):
42
+ targets = ["gfx908" , "gfx940" , "gfx1201" ]
42
43
r = ci_build .parse_gpu_targets ("," .join (targets ))
43
44
self .assertEqual (r , targets )
44
45
@@ -47,6 +48,7 @@ def test_parse_gpu_targets_empty_string(self):
47
48
r = ci_build .parse_gpu_targets ("" )
48
49
self .assertEqual (r , expected )
49
50
51
+ def test_parse_gpu_targets_whitespace_only (self ):
50
52
self .assertRaises (ValueError , ci_build .parse_gpu_targets , " " )
51
53
52
54
def test_parse_gpu_targets_invalid_arch (self ):
You can’t perform that action at this time.
0 commit comments