fab351
From 3b89c398895abe5fc62e3c9240718310222925ef Mon Sep 17 00:00:00 2001
fab351
From: Lubomir Rintel <lkundrak@v3.sk>
fab351
Date: Mon, 10 Jun 2019 16:04:33 +0200
fab351
Subject: [PATCH] test/IFCFG: make sure the network-legacy plugin is being used
fab351
fab351
If the network-manager plugin is used instead, it wouldn't write out
fab351
ifcfg files and we wouldn't have anything to check.
fab351
fab351
While at that, also enable the test.
fab351
fab351
(cherry picked from commit 2b1b3bcdcb0ddaa18337f18da515adb6284df0ab)
fab351
---
fab351
 .travis.yml                | 1 +
fab351
 README.md                  | 1 +
fab351
 test/TEST-60-IFCFG/test.sh | 2 +-
fab351
 3 files changed, 3 insertions(+), 1 deletion(-)
fab351
fab351
diff --git a/.travis.yml b/.travis.yml
fab351
index 364078cf..37002e9a 100644
fab351
--- a/.travis.yml
fab351
+++ b/.travis.yml
fab351
@@ -11,6 +11,7 @@ env:
fab351
   - IMAGE=latest TESTS=50
fab351
   - IMAGE=latest TESTS=30
fab351
   - IMAGE=latest TESTS=31
fab351
+  - IMAGE=latest TESTS=60
fab351
   - IMAGE=latest TESTS=70
fab351
   - IMAGE=latest TESTS=99
fab351
   - IMAGE=latest TESTS=02
fab351
diff --git a/README.md b/README.md
fab351
index 36ae7e1b..530f1c1b 100644
fab351
--- a/README.md
fab351
+++ b/README.md
fab351
@@ -27,4 +27,5 @@ dracut is an initramfs infrastructure.
fab351
 - Test 31: [![Test 31](https://ci.centos.org/job/dracut-matrix-master/TESTS=31,label=dracut-ci-slave01/badge/icon)](https://ci.centos.org/job/dracut-matrix-master/TESTS=31,label=dracut-ci-slave01/)
fab351
 - Test 40: [![Test 40](https://ci.centos.org/job/dracut-matrix-master/TESTS=40,label=dracut-ci-slave01/badge/icon)](https://ci.centos.org/job/dracut-matrix-master/TESTS=40,label=dracut-ci-slave01/)
fab351
 - Test 50: [![Test 50](https://ci.centos.org/job/dracut-matrix-master/TESTS=50,label=dracut-ci-slave01/badge/icon)](https://ci.centos.org/job/dracut-matrix-master/TESTS=50,label=dracut-ci-slave01/)
fab351
+- Test 60: [![Test 60](https://ci.centos.org/job/dracut-matrix-master/TESTS=60,label=dracut-ci-slave01/badge/icon)](https://ci.centos.org/job/dracut-matrix-master/TESTS=60,label=dracut-ci-slave01/)
fab351
 - Test 70: [![Test 70](https://ci.centos.org/job/dracut-matrix-master/TESTS=70,label=dracut-ci-slave01/badge/icon)](https://ci.centos.org/job/dracut-matrix-master/TESTS=70,label=dracut-ci-slave01/)
fab351
diff --git a/test/TEST-60-IFCFG/test.sh b/test/TEST-60-IFCFG/test.sh
fab351
index 8c11a7d3..8e8bd982 100755
fab351
--- a/test/TEST-60-IFCFG/test.sh
fab351
+++ b/test/TEST-60-IFCFG/test.sh
fab351
@@ -316,7 +316,7 @@ test_setup() {
fab351
     $basedir/dracut.sh -l -i "$TESTDIR"/overlay / \
fab351
         --no-early-microcode \
fab351
         -o "plymouth" \
fab351
-        -a "debug" \
fab351
+        -a "debug network-legacy" \
fab351
         -d "ipvlan macvlan af_packet piix sd_mod sr_mod ata_piix ide-gd_mod e1000 nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files sunrpc i6300esb ib700wdt" \
fab351
         --no-hostonly-cmdline -N \
fab351
         -f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
fab351