Skip to content

Commit 1c316d9

Browse files
committed
CI: Check for expected error
1 parent ada906a commit 1c316d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/_build_and_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ jobs:
2323
- name: Build examples
2424
run: cargo +nightly build --examples --release --verbose
2525
- name: Run tests
26-
run: cargo +nightly test --release --verbose
26+
run: |
27+
cargo +nightly test --release --verbose 2>&1 | tee stderr.txt
28+
- name: Check that tests failed for the expected reason
29+
run: |
30+
cat stderr.txt | grep -q "Error: unable to find Flipper Zero"

0 commit comments

Comments
 (0)