about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2023-09-07 22:12:40 +0200
committerPhilipp Krones <hello@philkrones.com>2023-09-07 22:12:40 +0200
commit25e86396768674837e9ca3f68e3902c63acefeef (patch)
tree0b9d8cd61794d4806e148073237e82aa4542fbb8
parentd780573becf50040d72165339ad989dc9acd8d48 (diff)
downloadrust-25e86396768674837e9ca3f68e3902c63acefeef.tar.gz
rust-25e86396768674837e9ca3f68e3902c63acefeef.zip
Fix clippy driver stderr test
-rw-r--r--.github/driver.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/driver.sh b/.github/driver.sh
index 798782340ee..c05c6ecc115 100644
--- a/.github/driver.sh
+++ b/.github/driver.sh
@@ -30,7 +30,7 @@ unset CARGO_MANIFEST_DIR
 # Run a lint and make sure it produces the expected output. It's also expected to exit with code 1
 # FIXME: How to match the clippy invocation in compile-test.rs?
 ./target/debug/clippy-driver -Dwarnings -Aunused -Zui-testing --emit metadata --crate-type bin tests/ui/double_neg.rs 2>double_neg.stderr && exit 1
-sed -e "s,tests/ui,\$DIR," -e "/= help/d" double_neg.stderr >normalized.stderr
+sed -e "s,tests/ui,\$DIR," -e "/= help: for/d" double_neg.stderr > normalized.stderr
 diff -u normalized.stderr tests/ui/double_neg.stderr
 
 # make sure "clippy-driver --rustc --arg" and "rustc --arg" behave the same