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

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