@@ -4,13 +4,9 @@ use cargo_test_support::cargo_test;
4
4
use completest_pty:: Runtime ;
5
5
use snapbox:: assert_data_eq;
6
6
7
- #[ cargo_test]
7
+ #[ cargo_test( requires_bash) ]
8
+ #[ cfg_attr( target_os = "macos" , ignore = "bash is not working on macOS" ) ]
8
9
fn bash ( ) {
9
- // HACK: At least on CI, bash is not working on macOS
10
- if cfg ! ( target_os = "macos" ) {
11
- return ;
12
- }
13
-
14
10
let input = "cargo \t \t " ;
15
11
let expected = snapbox:: str![
16
12
"%
@@ -29,13 +25,9 @@ fn bash() {
29
25
assert_data_eq ! ( actual, expected) ;
30
26
}
31
27
32
- #[ cargo_test]
28
+ #[ cargo_test( requires_elvish) ]
29
+ #[ cfg_attr( target_os = "macos" , ignore = "elvish is not working on macOS" ) ]
33
30
fn elvish ( ) {
34
- // HACK: At least on CI, elvish is not working on macOS
35
- if cfg ! ( target_os = "macos" ) {
36
- return ;
37
- }
38
-
39
31
let input = "cargo \t \t " ;
40
32
let expected = snapbox:: str![
41
33
"% cargo --config
@@ -55,13 +47,9 @@ fn elvish() {
55
47
assert_data_eq ! ( actual, expected) ;
56
48
}
57
49
58
- #[ cargo_test]
50
+ #[ cargo_test( requires_fish) ]
51
+ #[ cfg_attr( target_os = "macos" , ignore = "fish is not working on macOS" ) ]
59
52
fn fish ( ) {
60
- // HACK: At least on CI, fish is not working on macOS
61
- if cfg ! ( target_os = "macos" ) {
62
- return ;
63
- }
64
-
65
53
let input = "cargo \t \t " ;
66
54
let expected = snapbox:: str![
67
55
"% cargo
125
113
assert_data_eq ! ( actual, expected) ;
126
114
}
127
115
128
- #[ cargo_test]
116
+ #[ cargo_test( requires_zsh ) ]
129
117
fn zsh ( ) {
130
118
let input = "cargo \t \t " ;
131
119
let expected = snapbox:: str![
0 commit comments