]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Fix networkd test for an already running service 9534/head
authorMartin Pitt <martin@piware.de>
Sun, 8 Jul 2018 15:32:32 +0000 (17:32 +0200)
committerMartin Pitt <martin@piware.de>
Mon, 9 Jul 2018 14:44:03 +0000 (16:44 +0200)
commitc4a0a2d5f81ff1fa097be0b431eeaac96cbbb191
tree507498338cbb3ba0d26bee17ca0cf87c97f58c29
parent207f5f4d9322ebd545491e5267e636a3ca07721f
test: Fix networkd test for an already running service

Mount tmpfses over the networkd and resolved config and state
directories, and stop the services beforehand. This ensures that the
test does not mess with an existing networkd/resolved setup. At least
for ethernet setups, this does not sever existing links, so is good
enough for the CI cases we are interested in (QEMU and LXC).

Relax the skip check to only skip the test when trying to run this on
real iron, but start running it in virtual machines now.

This allows us to run the test on Ubuntu 18.04 LTS in CI, which uses
both services by default.
test/networkd-test.py