Fix systemd CI test.

* CI Fix #3

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2023-09-10 22:16:44 +02:00
parent 0a0342ce28
commit a7ac83385b

View File

@@ -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: |