Skip to content

Commit 7224118

Browse files
committed
Adjust CI to how the ui test suite works
1 parent c6f20a6 commit 7224118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/driver.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ test "$sysroot" = $desired_sysroot
2727
# Make sure this isn't set - clippy-driver should cope without it
2828
unset CARGO_MANIFEST_DIR
2929

30-
# Run a lint and make sure it produces the expected output. It's also expected to exit with code 1
30+
# Run a lint and make sure it produces the expected output. It's also expected to exit with code 0
3131
# FIXME: How to match the clippy invocation in compile-test.rs?
32-
./target/debug/clippy-driver -Dwarnings -Aunused -Zui-testing --emit metadata --crate-type bin tests/ui/double_neg.rs 2>double_neg.stderr && exit 1
32+
./target/debug/clippy-driver -Aunused -Zui-testing --emit metadata --crate-type bin tests/ui/double_neg.rs 2>double_neg.stderr || exit 1
3333
sed -e "s,tests/ui,\$DIR," -e "/= help/d" double_neg.stderr >normalized.stderr
3434
diff -u normalized.stderr tests/ui/double_neg.stderr
3535

0 commit comments

Comments
 (0)