Skip to content

Commit

Permalink
ci: integration tests: print clippy run output and set LD_LIBRARY_PAT…
Browse files Browse the repository at this point in the history
…H to rustc sysroot
  • Loading branch information
matthiaskrgr committed Jul 25, 2023
1 parent c3079a9 commit b84fb9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Set LD_LIBRARY_PATH
run: |
SYSROOT=$(rustc --print sysroot)
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
# Run
- name: Check Changelog
run: |
Expand Down
4 changes: 4 additions & 0 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ fn integration_test() {
.expect("unable to run clippy");

let stderr = String::from_utf8_lossy(&output.stderr);

// debug:
eprintln!("{stderr}");

if let Some(backtrace_start) = stderr.find("error: internal compiler error") {
static BACKTRACE_END_MSG: &str = "end of query stack";
let backtrace_end = stderr[backtrace_start..]
Expand Down

0 comments on commit b84fb9b

Please sign in to comment.