Skip to content

Commit b84fb9b

Browse files
committed
ci: integration tests: print clippy run output and set LD_LIBRARY_PATH to rustc sysroot
1 parent c3079a9 commit b84fb9b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: .github/workflows/clippy_bors.yml

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
with:
3131
ref: ${{ github.ref }}
3232

33+
- name: Set LD_LIBRARY_PATH
34+
run: |
35+
SYSROOT=$(rustc --print sysroot)
36+
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
37+
3338
# Run
3439
- name: Check Changelog
3540
run: |

Diff for: tests/integration.rs

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ fn integration_test() {
6565
.expect("unable to run clippy");
6666

6767
let stderr = String::from_utf8_lossy(&output.stderr);
68+
69+
// debug:
70+
eprintln!("{stderr}");
71+
6872
if let Some(backtrace_start) = stderr.find("error: internal compiler error") {
6973
static BACKTRACE_END_MSG: &str = "end of query stack";
7074
let backtrace_end = stderr[backtrace_start..]

0 commit comments

Comments
 (0)