@@ -52,13 +52,23 @@ def test_param_with_eq(self, completion, gcc_with_completion):
52
52
assert completion in ("artition" , "artition=" )
53
53
54
54
@pytest .mark .complete ("gcc -march=amd" )
55
- def test_march (self , completion , gcc_with_completion , gcc_x86 ):
55
+ def test_march_amd (self , completion , gcc_with_completion , gcc_x86 ):
56
56
assert completion == "fam10"
57
57
58
58
@pytest .mark .complete ("gcc -march=" )
59
- def test_march_native (self , completion , gcc_with_completion ):
60
- assert "native" in completion
59
+ def test_march (self , completion , gcc_with_completion ):
60
+ # https://github.com/scop/bash-completion/issues/1201
61
+ # native: x86, some others
62
+ # power*: ppc
63
+ assert "native" in completion or any (
64
+ x .startswith ("power" ) for x in completion
65
+ )
61
66
62
67
@pytest .mark .complete ("gcc -mtune=" )
63
- def test_mtune_generic (self , completion , gcc_with_completion ):
64
- assert "generic" in completion
68
+ def test_mtune (self , completion , gcc_with_completion ):
69
+ # https://github.com/scop/bash-completion/issues/1201
70
+ # generic: x86, some others
71
+ # power*: ppc
72
+ assert "generic" in completion or any (
73
+ x .startswith ("power" ) for x in completion
74
+ )
0 commit comments