Skip to content

Commit 0e5aa47

Browse files
committed
Attempt to fix linux github workflow
Since linux runners now longer return any HID devices and a system returning no devices is considered an error to hidapitester.
1 parent d6fcdd6 commit 0e5aa47

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/linux.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: run hidapitester (Makefile)
3939
shell: bash
40-
run: ./hidapitester --version && ./hidapitester --list
40+
run: ./hidapitester --version && ./hidapitester --list 2>&1 || grep -q "No HID devices found"
4141

4242
- name: Configure hidapitester with CMake
4343
run: |
@@ -48,7 +48,8 @@ jobs:
4848
run: cmake --build build --config Release
4949

5050
- name: Run hidapitester (CMake)
51-
run: ./build/hidapitester --version && ./build/hidapitester --list
51+
run: ./build/hidapitester --version && ./hidapitester --list 2>&1 || grep -q "No HID devices found"
52+
# (we need the grep guard because Linux runners no longer return any devices)
5253

5354
- name: Upload hidapitester artifacts (PR)
5455
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)