@@ -4,13 +4,9 @@ use cargo_test_support::cargo_test;
44use completest_pty:: Runtime ;
55use snapbox:: assert_data_eq;
66
7- #[ cargo_test]
7+ #[ cargo_test( requires_bash) ]
8+ #[ cfg_attr( target_os = "macos" , ignore = "bash is not working on macOS" ) ]
89fn bash ( ) {
9- // HACK: At least on CI, bash is not working on macOS
10- if cfg ! ( target_os = "macos" ) {
11- return ;
12- }
13-
1410 let input = "cargo \t \t " ;
1511 let expected = snapbox:: str![
1612 "%
@@ -29,13 +25,9 @@ fn bash() {
2925 assert_data_eq ! ( actual, expected) ;
3026}
3127
32- #[ cargo_test]
28+ #[ cargo_test( requires_elvish) ]
29+ #[ cfg_attr( target_os = "macos" , ignore = "elvish is not working on macOS" ) ]
3330fn elvish ( ) {
34- // HACK: At least on CI, elvish is not working on macOS
35- if cfg ! ( target_os = "macos" ) {
36- return ;
37- }
38-
3931 let input = "cargo \t \t " ;
4032 let expected = snapbox:: str![
4133 "% cargo --config
@@ -55,13 +47,9 @@ fn elvish() {
5547 assert_data_eq ! ( actual, expected) ;
5648}
5749
58- #[ cargo_test]
50+ #[ cargo_test( requires_fish) ]
51+ #[ cfg_attr( target_os = "macos" , ignore = "fish is not working on macOS" ) ]
5952fn fish ( ) {
60- // HACK: At least on CI, fish is not working on macOS
61- if cfg ! ( target_os = "macos" ) {
62- return ;
63- }
64-
6553 let input = "cargo \t \t " ;
6654 let expected = snapbox:: str![
6755 "% cargo
125113 assert_data_eq ! ( actual, expected) ;
126114}
127115
128- #[ cargo_test]
116+ #[ cargo_test( requires_zsh ) ]
129117fn zsh ( ) {
130118 let input = "cargo \t \t " ;
131119 let expected = snapbox:: str![
0 commit comments