Skip to content

Commit 8fc3ff4

Browse files
committed
Auto merge of #14590 - epage:completest-bad, r=weihanglo
test: Remove completion tests The tests are intended to spot check that shell completions are registered correctly. That is a low change, low risk area. For shell integration, we're relying on `clap_complete`s tests. For our own candidates, we should test the candidate generation directly, rather than end-to-end. This reverts parts of commit e7ca9be, reversing changes made to bd5f32b. Fixes #14545
2 parents 90690c5 + 023f4c6 commit 8fc3ff4

File tree

5 files changed

+0
-309
lines changed

5 files changed

+0
-309
lines changed

.github/workflows/main.yml

-8
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,6 @@ jobs:
173173
- run: rustup target add ${{ matrix.other }}
174174
- run: rustup component add rustc-dev llvm-tools-preview rust-docs
175175
if: startsWith(matrix.rust, 'nightly')
176-
# Install fish, zsh, and elvish only on Ubuntu systems
177-
- name: Install fish, zsh, and elvish on Ubuntu
178-
run: sudo apt update -y && sudo apt install fish zsh elvish -y
179-
if: matrix.os == 'ubuntu-latest'
180-
- name: Install fish, elvish on macOS
181-
run: brew install fish elvish
182-
if: matrix.os == 'macos-14' || matrix.os == 'macos-13'
183176
- run: sudo apt update -y && sudo apt install lldb gcc-multilib libsecret-1-0 libsecret-1-dev -y
184177
if: matrix.os == 'ubuntu-latest'
185178
- run: rustup component add rustfmt || echo "rustfmt not available"
@@ -234,7 +227,6 @@ jobs:
234227
- run: rustup update --no-self-update stable && rustup default stable
235228
- run: rustup target add i686-unknown-linux-gnu
236229
- run: sudo apt update -y && sudo apt install gcc-multilib libsecret-1-0 libsecret-1-dev -y
237-
- run: sudo apt update -y && sudo apt install fish zsh elvish -y
238230
- run: rustup component add rustfmt || echo "rustfmt not available"
239231
- run: cargo test -p cargo
240232
env:

Cargo.lock

-94
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ cargo_metadata = "0.18.1"
3838
clap = "4.5.18"
3939
clap_complete = { version = "4.5.29", features = ["unstable-dynamic"] }
4040
color-print = "0.3.6"
41-
completest-pty = "0.5.3"
4241
core-foundation = { version = "0.10.0", features = ["mac_os_10_7_support"] }
4342
crates-io = { version = "0.40.4", path = "crates/crates-io" }
4443
criterion = { version = "0.5.1", features = ["html_reports"] }
@@ -242,7 +241,6 @@ features = [
242241
[dev-dependencies]
243242
annotate-snippets = { workspace = true, features = ["testing-colors"] }
244243
cargo-test-support.workspace = true
245-
completest-pty.workspace = true
246244
gix = { workspace = true, features = ["revision"] }
247245
same-file.workspace = true
248246
snapbox.workspace = true

tests/testsuite/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ mod rustflags;
166166
mod rustup;
167167
mod script;
168168
mod search;
169-
mod shell_completions;
170169
mod shell_quoting;
171170
mod source_replacement;
172171
mod ssh;

0 commit comments

Comments
 (0)