]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: skip test 50,60 if ifcfg dracut module can not be installed
authorHenrik Gombos <henrik99999@gmail.com>
Sun, 29 Oct 2023 11:42:20 +0000 (07:42 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Sun, 31 Mar 2024 18:14:18 +0000 (14:14 -0400)
Test 50 and 60 have a dependency on the ifcfg dracut module.
If ifcfg dracut module is not available, than the preconditions
for these tests are not met.

Since ifcfg dracut module is not available in many Linux enviroments
(such as Arch or Debian), it make sense to explicitelly skip these
tests instead of failing them as they are simply not applicable
to many Linux distributions in their current form.

Instead of disabling the tests, they should be reimplement
so that they do not require ifcfg dracut module in the future.

test/TEST-50-MULTINIC/test.sh
test/TEST-60-BONDBRIDGEVLAN/test.sh

index 4f8123530d909f7679b9f18cf69ae5f757608e78..b5d3341fbbfd318debb4036196809a270d0ac9f1 100755 (executable)
@@ -7,6 +7,11 @@ TEST_DESCRIPTION="root filesystem on NFS with multiple nics with $USE_NETWORK"
 #DEBUGFAIL="loglevel=7 rd.shell rd.break"
 #SERIAL="tcp:127.0.0.1:9999"
 
+# skip the test if ifcfg dracut module can not be installed
+test_check() {
+    test -d /etc/sysconfig/network-scripts
+}
+
 run_server() {
     # Start server first
     echo "MULTINIC TEST SETUP: Starting DHCP/NFS server"
index 5110ddb13a3c2a6904e251ccc1926c46b7e7c921..79961cd8ee4ede5ddd49415ef884332c361afdd9 100755 (executable)
@@ -9,6 +9,11 @@ TEST_DESCRIPTION="root filesystem on NFS with bridging/bonding/vlan with $USE_NE
 #DEBUGFAIL="rd.shell rd.break"
 #SERIAL="tcp:127.0.0.1:9999"
 
+# skip the test if ifcfg dracut module can not be installed
+test_check() {
+    test -d /etc/sysconfig/network-scripts
+}
+
 # Network topology:
 #
 #  .---------------------.    .---------------.