test: fix test-loopback failure when lacking privileges
authorLuca Boccassi <bluca@debian.org>
Sun, 3 Mar 2024 18:15:26 +0000 (18:15 +0000)
committerLuca Boccassi <bluca@debian.org>
Mon, 4 Mar 2024 16:28:10 +0000 (16:28 +0000)
commitba3c8e685a5d8d81c2c825f79a8cea23f4edf01e
treec87148017d5f45c0eb9ebfddbba5816259476640
parent82cf92e1f6dd1d0d574e85e693125403e3d3bf48
test: fix test-loopback failure when lacking privileges

Setting up the loopback might fail due to lack of privileges, as it
happens when running unit tests in the Noble CI environment. Skip
the test when it happens.

1584s  862/1330 systemd:test / test-loopback   FAIL  0.01s   exit status 1
1584s /* test_loopback_setup */
1584s Failed to configure loopback network device, ignoring: Operation not permitted
1584s loopback: Operation not permitted
src/test/test-loopback.c