test: create .netdev file at last
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 18 Sep 2024 23:43:51 +0000 (08:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Sep 2024 05:50:10 +0000 (14:50 +0900)
commit2bcc2a89f3b52cb98e81c4ec1af82600919e2d7d
tree2d9b206aeced791d122aa0ca08888d1846ae0b45
parent1d5b4317cd0140c043495f946e5352b188f3bec0
test: create .netdev file at last

Previously, when the test ran on mkosi, then networkd was not masked, and
might be already started. In that case, the interface test2 would be created
soon after the .netdev file is created, and the .link file would not be
applied to the interface. Hence, the later test case for
'networkctl cat @test2:link' would fail.

This make networkd always started at the beginning of the test, and
.netdev file created after .link file is created. So, .link file is
always applied to the interface created by the .netdev file.
test/units/TEST-74-AUX-UTILS.networkctl.sh