Skip to content

Commit c941d13

Browse files
committed
More changes to the linux script
Signed-off-by: Flavia Rainone <frainone@redhat.com>
1 parent 6f8f44d commit c941d13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ jobs:
175175
if: matrix.os != 'windows-latest'
176176
run: |
177177
timeout --foreground 180s sh -c 'mvn -U -B -fae test ${{ matrix.proxy }} '-DfailIfNoTests=false' -pl ${{ matrix.module }} -Dtest.ipv6=true;exit' || echo "Hanging test found, we will proceed with a thread dump"
178+
timeout_occurred=$?
178179
hanging_test_pid=$(jps | awk '$2 ~ /surefirebooter/ {print $1}')
179-
[ ! -z "$hanging_test_pid" ] && echo "Hanging test found. Pid is $hanging_test_pid" && jstack -l $(jps | awk '$2 ~ /surefirebooter/ {print $1}') | tee thread-dump.txt && exit 1
180+
[ ! -z "$hanging_test_pid" ] && echo "Hanging test found. Pid is $hanging_test_pid" && jstack -l $(jps | awk '$2 ~ /surefirebooter/ {print $1}') | tee thread-dump.txt && exit 1 || echo "No hanging test found, tests run successfully" && exit $timeout_occurred
180181
- uses: actions/upload-artifact@v4
181182
if: failure()
182183
with:

0 commit comments

Comments
 (0)