Don't try to reinstall ripgrep if it is already installed

This commit is contained in:
bjorn3 2022-02-06 15:13:29 +01:00
parent 441e2e67fa
commit 583333a2b2

View File

@ -8,7 +8,7 @@ source ./scripts/setup_rust_fork.sh
echo "[TEST] Test suite of rustc" echo "[TEST] Test suite of rustc"
pushd rust pushd rust
cargo install ripgrep command -v rg >/dev/null 2>&1 || cargo install ripgrep
rm -r src/test/ui/{extern/,panics/,unsized-locals/,lto/,simd*,linkage*,unwind-*.rs} || true rm -r src/test/ui/{extern/,panics/,unsized-locals/,lto/,simd*,linkage*,unwind-*.rs} || true
for test in $(rg --files-with-matches "asm!|catch_unwind|should_panic|lto|// needs-asm-support" src/test/ui); do for test in $(rg --files-with-matches "asm!|catch_unwind|should_panic|lto|// needs-asm-support" src/test/ui); do