Skip to content

Commit 418ce5f

Browse files
committed
test(completions): Verify nightly completion system
This reverts commit 47f4cdc. Fixes rust-lang#14545
1 parent a9a418d commit 418ce5f

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

tests/testsuite/shell_completions.rs

+4-23
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ use cargo_test_support::cargo_test;
44
use completest_pty::Runtime;
55
use snapbox::assert_data_eq;
66

7-
#[cargo_test]
8-
#[ignore = "disabled, see https://github.com/rust-lang/cargo/issues/14545"]
7+
#[cargo_test(requires_bash)]
98
fn bash() {
10-
// HACK: At least on CI, bash is not working on macOS
11-
if cfg!(target_os = "macos") {
12-
return;
13-
}
14-
159
let input = "cargo \t\t";
1610
let expected = snapbox::str![
1711
"%
@@ -30,14 +24,8 @@ fn bash() {
3024
assert_data_eq!(actual, expected);
3125
}
3226

33-
#[cargo_test]
34-
#[ignore = "disabled, see https://github.com/rust-lang/cargo/issues/14545"]
27+
#[cargo_test(requires_elvish)]
3528
fn elvish() {
36-
// HACK: At least on CI, elvish is not working on macOS
37-
if cfg!(target_os = "macos") {
38-
return;
39-
}
40-
4129
let input = "cargo \t\t";
4230
let expected = snapbox::str![
4331
"% cargo --config
@@ -57,14 +45,8 @@ fn elvish() {
5745
assert_data_eq!(actual, expected);
5846
}
5947

60-
#[cargo_test]
61-
#[ignore = "disabled, see https://github.com/rust-lang/cargo/issues/14545"]
48+
#[cargo_test(requires_fish)]
6249
fn fish() {
63-
// HACK: At least on CI, fish is not working on macOS
64-
if cfg!(target_os = "macos") {
65-
return;
66-
}
67-
6850
let input = "cargo \t\t";
6951
let expected = snapbox::str![
7052
"% cargo
@@ -128,8 +110,7 @@ yank
128110
assert_data_eq!(actual, expected);
129111
}
130112

131-
#[cargo_test]
132-
#[ignore = "disabled, see https://github.com/rust-lang/cargo/issues/14545"]
113+
#[cargo_test(requires_zsh)]
133114
fn zsh() {
134115
let input = "cargo \t\t";
135116
let expected = snapbox::str![

0 commit comments

Comments
 (0)