Skip to content

Commit 2e50125

Browse files
committed
Add log output to fsanitize
1 parent 2b21f89 commit 2e50125

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

.github/workflows/ubuntu-check.yml

+4-18
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,7 @@ jobs:
6060
- name: wolfmqtt make
6161
run: make
6262
- name: wolfmqtt make check
63-
id: make-check
6463
run: make check
65-
- name: Show logs on failure
66-
if: ${{ failure() && steps.make-check.outcome == 'failure' }}
67-
run: |
68-
more test-suite.log
6964

7065
env:
7166
WOLFMQTT_NO_EXTERNAL_BROKER_TESTS: 1
@@ -75,33 +70,24 @@ jobs:
7570
- name: wolfmqtt make
7671
run: make
7772
- name: wolfmqtt make check
78-
id: make-check-sn
7973
run: make check
80-
- name: Show logs on failure
81-
if: ${{ failure() && steps.make-check-sn.outcome == 'failure' }}
82-
run: |
83-
more test-suite.log
8474

8575
- name: wolfmqtt configure with Non-Block
8676
run: ./configure --enable-nonblock CFLAGS="-DWOLFMQTT_TEST_NONBLOCK"
8777
- name: wolfmqtt make
8878
run: make
8979
- name: wolfmqtt make check
90-
id: make-check-nonblock
9180
run: make check
92-
- name: Show logs on failure
93-
if: ${{ failure() && steps.make-check-nonblock.outcome == 'failure' }}
94-
run: |
95-
more test-suite.log
9681

9782
- name: wolfmqtt configure with Non-Block and Multi-threading
9883
run: ./configure --enable-mt --enable-nonblock CFLAGS="-DWOLFMQTT_TEST_NONBLOCK"
9984
- name: wolfmqtt make
10085
run: make
10186
- name: wolfmqtt make check
102-
id: make-check-nonblock-mt
10387
run: make check
88+
89+
# capture logs on failure
10490
- name: Show logs on failure
105-
if: ${{ failure() && steps.make-check-nonblock-mt.outcome == 'failure' }}
91+
if: failure() || cancelled()
10692
run: |
107-
more test-suite.log
93+
cat test-suite.log

0 commit comments

Comments
 (0)