Skip to content

Commit

Permalink
Adjust CI to how the ui test suite works
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Mar 2, 2023
1 parent c6f20a6 commit 7224118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ test "$sysroot" = $desired_sysroot
# Make sure this isn't set - clippy-driver should cope without it
unset CARGO_MANIFEST_DIR

# Run a lint and make sure it produces the expected output. It's also expected to exit with code 1
# Run a lint and make sure it produces the expected output. It's also expected to exit with code 0
# 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
./target/debug/clippy-driver -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
diff -u normalized.stderr tests/ui/double_neg.stderr

Expand Down

0 comments on commit 7224118

Please sign in to comment.