Blame SOURCES/0035-tests-mark-MD-tests-with-metadata-v0.90-as-KNOWN-FAI.patch

31b890
From 3fd5c8e78a9758a6fc9310485d2428e300ad3b63 Mon Sep 17 00:00:00 2001
31b890
From: Karel Zak <kzak@redhat.com>
31b890
Date: Thu, 11 Jun 2020 10:55:25 +0200
31b890
Subject: [PATCH 35/40] tests: mark MD tests with metadata v0.90 as KNOWN-FAIL
31b890
31b890
metadata v0.90 is deprecated thing and unsupported to create by some new
31b890
mdadm versions. It's possible to assemble this array (with
31b890
default_layout=1 on modprobe raid0), but impossible to create a new
31b890
one.
31b890
31b890
Upstream: http://github.com/karelzak/util-linux/commit/4ae96cf77b36660255d5870a4209480bbec47902
31b890
Upstream: http://github.com/karelzak/util-linux/commit/7519c3edab120b14623931d5ddb16fdc6e7cad5d
31b890
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1826251
31b890
Signed-off-by: Karel Zak <kzak@redhat.com>
31b890
---
31b890
 tests/ts/blkid/md-raid0-whole  | 3 +++
31b890
 tests/ts/blkid/md-raid1-part   | 3 +++
31b890
 tests/ts/blkid/md-raid1-whole  | 3 +++
31b890
 tests/ts/fdisk/align-512-4K-md | 3 +++
31b890
 4 files changed, 12 insertions(+)
31b890
31b890
diff --git a/tests/ts/blkid/md-raid0-whole b/tests/ts/blkid/md-raid0-whole
31b890
index 45c6ee55b..1f3fc2634 100755
31b890
--- a/tests/ts/blkid/md-raid0-whole
31b890
+++ b/tests/ts/blkid/md-raid0-whole
31b890
@@ -29,6 +29,9 @@ ts_skip_nonroot
31b890
 ts_check_losetup
31b890
 ts_check_prog "mdadm"
31b890
 
31b890
+# rhbz#182625: It can't create new raid0 with metadata 0.90 from mdadm-4.1-12.
31b890
+TS_KNOWN_FAIL="yes"                                         
31b890
+
31b890
 ts_log "Initialize devices"
31b890
 IMGNAME="${TS_OUTDIR}/${TS_TESTNAME}"
31b890
 
31b890
diff --git a/tests/ts/blkid/md-raid1-part b/tests/ts/blkid/md-raid1-part
31b890
index 3fa6395b0..3d42aadb8 100755
31b890
--- a/tests/ts/blkid/md-raid1-part
31b890
+++ b/tests/ts/blkid/md-raid1-part
31b890
@@ -28,6 +28,9 @@ ts_check_test_command "$TS_CMD_BLKID"
31b890
 ts_skip_nonroot
31b890
 ts_check_prog "mdadm"
31b890
 
31b890
+# rhbz#182625: It can't create new raid0 with metadata 0.90 from mdadm-4.1-12.
31b890
+TS_KNOWN_FAIL="yes"                                         
31b890
+
31b890
 # set global variable TS_DEVICE
31b890
 ts_scsi_debug_init dev_size_mb=51 sector_size=512
31b890
 
31b890
diff --git a/tests/ts/blkid/md-raid1-whole b/tests/ts/blkid/md-raid1-whole
31b890
index ddf4a6934..6eba9cc8e 100755
31b890
--- a/tests/ts/blkid/md-raid1-whole
31b890
+++ b/tests/ts/blkid/md-raid1-whole
31b890
@@ -29,6 +29,9 @@ ts_skip_nonroot
31b890
 ts_check_losetup
31b890
 ts_check_prog "mdadm"
31b890
 
31b890
+# rhbz#182625: It can't create new raid0 with metadata 0.90 from mdadm-4.1-12.
31b890
+TS_KNOWN_FAIL="yes"
31b890
+
31b890
 ts_log "Initialize devices"
31b890
 IMGNAME="${TS_OUTDIR}/${TS_TESTNAME}"
31b890
 
31b890
diff --git a/tests/ts/fdisk/align-512-4K-md b/tests/ts/fdisk/align-512-4K-md
31b890
index 68aaff0b7..0a8e09bc1 100755
31b890
--- a/tests/ts/fdisk/align-512-4K-md
31b890
+++ b/tests/ts/fdisk/align-512-4K-md
31b890
@@ -31,6 +31,9 @@ ts_check_test_command "$TS_CMD_FDISK"
31b890
 ts_skip_nonroot
31b890
 ts_check_prog "mdadm"
31b890
 
31b890
+# rhbz#182625: It can't create new raid0 with metadata 0.90 from mdadm-4.1-12.
31b890
+TS_KNOWN_FAIL="yes"
31b890
+
31b890
 # set global variable TS_DEVICE
31b890
 ts_scsi_debug_init dev_size_mb=50 sector_size=512 physblk_exp=3
31b890
 DEVNAME=$(basename $TS_DEVICE)
31b890
-- 
31b890
2.25.4
31b890