|
|
b3cd9f |
From 436135496469ec24be1fc6fbc03a39d2575c8686 Mon Sep 17 00:00:00 2001
|
|
|
b3cd9f |
From: Frantisek Sumsal <frantisek@sumsal.cz>
|
|
|
b3cd9f |
Date: Sat, 13 Nov 2021 17:55:45 +0100
|
|
|
b3cd9f |
Subject: [PATCH] ci: backport TEST-21-NFS-NM
|
|
|
b3cd9f |
|
|
|
b3cd9f |
Loosely cherry-picked from a3f73298f287e75810d6784efa52e80af15da2bd.
|
|
|
b3cd9f |
|
|
|
b3cd9f |
rhel-only
|
|
|
b3cd9f |
---
|
|
|
b3cd9f |
.github/workflows/integration.yml | 3 +--
|
|
|
b3cd9f |
test/TEST-20-NFS/test.sh | 14 +++++++++++---
|
|
|
b3cd9f |
test/TEST-21-NFS-NM/Makefile | 12 ++++++++++++
|
|
|
b3cd9f |
3 files changed, 24 insertions(+), 5 deletions(-)
|
|
|
b3cd9f |
|
|
|
b3cd9f |
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
|
|
|
b3cd9f |
index 80a856a2..9c7c8486 100644
|
|
|
b3cd9f |
--- a/.github/workflows/integration.yml
|
|
|
b3cd9f |
+++ b/.github/workflows/integration.yml
|
|
|
b3cd9f |
@@ -29,9 +29,8 @@ jobs:
|
|
|
b3cd9f |
"13",
|
|
|
b3cd9f |
"17",
|
|
|
b3cd9f |
"20",
|
|
|
b3cd9f |
- #"21", needs backport (NFS + NM)
|
|
|
b3cd9f |
+ "21",
|
|
|
b3cd9f |
"40",
|
|
|
b3cd9f |
- #"41", needws backport (NBD + NM)
|
|
|
b3cd9f |
"98",
|
|
|
b3cd9f |
]
|
|
|
b3cd9f |
fail-fast: false
|
|
|
b3cd9f |
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
|
|
|
b3cd9f |
index 4ad7fd77..320f9c3e 100755
|
|
|
b3cd9f |
--- a/test/TEST-20-NFS/test.sh
|
|
|
b3cd9f |
+++ b/test/TEST-20-NFS/test.sh
|
|
|
b3cd9f |
@@ -1,5 +1,13 @@
|
|
|
b3cd9f |
#!/bin/bash
|
|
|
b3cd9f |
-TEST_DESCRIPTION="root filesystem on NFS"
|
|
|
b3cd9f |
+if [[ $NM ]]; then
|
|
|
b3cd9f |
+ USE_NETWORK="network-manager"
|
|
|
b3cd9f |
+ OMIT_NETWORK="network-legacy"
|
|
|
b3cd9f |
+else
|
|
|
b3cd9f |
+ USE_NETWORK="network-legacy"
|
|
|
b3cd9f |
+ OMIT_NETWORK="network-manager"
|
|
|
b3cd9f |
+fi
|
|
|
b3cd9f |
+
|
|
|
b3cd9f |
+TEST_DESCRIPTION="root filesystem on NFS with $USE_NETWORK"
|
|
|
b3cd9f |
|
|
|
b3cd9f |
KVERSION=${KVERSION-$(uname -r)}
|
|
|
b3cd9f |
|
|
|
b3cd9f |
@@ -353,8 +361,8 @@ test_setup() {
|
|
|
b3cd9f |
|
|
|
b3cd9f |
# Make client's dracut image
|
|
|
b3cd9f |
$basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
b3cd9f |
- -o "plymouth dash" \
|
|
|
b3cd9f |
- -a "debug watchdog" \
|
|
|
b3cd9f |
+ -o "plymouth dash ${OMIT_NETWORK}" \
|
|
|
b3cd9f |
+ -a "debug watchdog ${USE_NETWORK}" \
|
|
|
b3cd9f |
-d "af_packet piix ide-gd_mod ata_piix sd_mod e1000 nfs sunrpc i6300esb" \
|
|
|
b3cd9f |
--no-hostonly-cmdline -N \
|
|
|
b3cd9f |
-f $TESTDIR/initramfs.testing $KVERSION || return 1
|
|
|
b3cd9f |
diff --git a/test/TEST-21-NFS-NM/Makefile b/test/TEST-21-NFS-NM/Makefile
|
|
|
b3cd9f |
new file mode 100644
|
|
|
b3cd9f |
index 00000000..b19122a1
|
|
|
b3cd9f |
--- /dev/null
|
|
|
b3cd9f |
+++ b/test/TEST-21-NFS-NM/Makefile
|
|
|
b3cd9f |
@@ -0,0 +1,12 @@
|
|
|
b3cd9f |
+.PHONY: all setup clean run
|
|
|
b3cd9f |
+
|
|
|
b3cd9f |
+BASETEST=../TEST-20-NFS
|
|
|
b3cd9f |
+
|
|
|
b3cd9f |
+all:
|
|
|
b3cd9f |
+ @$(MAKE) NM=1 -s --no-print-directory -C $(BASETEST) all
|
|
|
b3cd9f |
+setup:
|
|
|
b3cd9f |
+ @$(MAKE) NM=1 -s --no-print-directory -C $(BASETEST) setup
|
|
|
b3cd9f |
+clean:
|
|
|
b3cd9f |
+ @$(MAKE) NM=1 -s --no-print-directory -C $(BASETEST) clean
|
|
|
b3cd9f |
+run:
|
|
|
b3cd9f |
+ @$(MAKE) NM=1 -s --no-print-directory -C $(BASETEST) run
|
|
|
b3cd9f |
|