Skip to content

Commit 12b63f5

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

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/clippy_bors.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ jobs:
232232
- name: Install toolchain
233233
run: rustup show active-toolchain
234234

235+
- name: Set LD_LIBRARY_PATH
236+
run: |
237+
SYSROOT=$(rustc --print sysroot)
238+
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
239+
235240
# Download
236241
- name: Download target dir
237242
uses: actions/download-artifact@v3
@@ -246,7 +251,7 @@ jobs:
246251
- name: Test ${{ matrix.integration }}
247252
run: |
248253
RUSTUP_TOOLCHAIN="$(rustup show active-toolchain | grep -o -E "nightly-[0-9]{4}-[0-9]{2}-[0-9]{2}")" \
249-
$CARGO_TARGET_DIR/debug/integration
254+
$CARGO_TARGET_DIR/debug/integration --show-output
250255
env:
251256
INTEGRATION: ${{ matrix.integration }}
252257

tests/integration.rs

Lines changed: 4 additions & 0 deletions
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)