aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-09-10 22:16:44 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-09-10 22:16:44 +0200
commita7ac83385b6a50708406ac71f53a1356718dcea8 (patch)
tree9e79ab7e006bfdaed8f8c652063d26b6272e8323 /.github
parent0a0342ce2826b00e0d51d875ed863c7623b139f3 (diff)
Fix systemd CI test.
* CI Fix #3 Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0aaacce49..802e1101a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -173,11 +173,15 @@ jobs:
- name: systemd test
if: startsWith(matrix.os, 'ubuntu-latest') && startsWith(matrix.compiler, 'gcc')
run: |
+ ip -c address
sudo systemctl daemon-reload
sudo systemctl enable ndpid@lo
- sudo systemctl --wait start ndpid@lo
+ SYSTEMD_RET=0
+ sudo systemctl --wait start ndpid@lo || { SYSTEMD_RET=$?; true; }
+ echo "systemctl returned: ${SYSTEMD_RET}"
sudo systemctl status ndpisrvd.service ndpid@lo.service
sudo systemctl show ndpisrvd.service ndpid@lo.service -p SubState,ActiveState
+ test $SYSTEMD_RET -ne 0 && false
- name: Build against libnDPI-${{ matrix.ndpi_min_version }}
if: matrix.upload == false
run: |