diff mbox series

test-appliance: store the base fs type for overlay test run

Message ID 1535395145-19166-1-git-send-email-amir73il@gmail.com (mailing list archive)
State New, archived
Headers show
Series test-appliance: store the base fs type for overlay test run | expand

Commit Message

Amir Goldstein Aug. 27, 2018, 6:39 p.m. UTC
The base fs is used by xfstests in several places, for example, to
check if need to disable extent zeroing for underlying ext4 base fs.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---

Ted,

This patch is complimentary to this change in fstests:
https://marc.info/?l=fstests&m=153539445716875&w=2

Thanks,
Amir.

 kvm-xfstests/test-appliance/files/root/runtests.sh | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/kvm-xfstests/test-appliance/files/root/runtests.sh b/kvm-xfstests/test-appliance/files/root/runtests.sh
index 1905493..5430dd7 100755
--- a/kvm-xfstests/test-appliance/files/root/runtests.sh
+++ b/kvm-xfstests/test-appliance/files/root/runtests.sh
@@ -379,6 +379,11 @@  do
 	    echo TEST_SET_EXCLUDE: $TEST_SET_EXCLUDE
 	    echo TEST_SET_EXCLUDE: $XFS_IO_AVOID >> "$RESULT_BASE/config"
 	fi
+	if [ "$FS" = overlay ]; then
+		# with an overlay configuration preserve base FSTYP
+		# in OVL_BASE_FSTYP
+		export OVL_BASE_FSTYP="$FSTESTTYP"
+	fi
 	export FSTYP=$FS
 	AEX=""
 	if test -n "$DO_AEX" ; then