From: Bernhard Voelker Date: Wed, 1 Aug 2012 08:35:34 +0000 (+0200) Subject: tests: blkid/md-raid1-part fails X-Git-Tag: v2.22-rc2~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c057c0d2855c19bd0cef90af660173dd7a8dd0e9;p=thirdparty%2Futil-linux.git tests: blkid/md-raid1-part fails [kzak@redhat.com: - I forgot to apply this part of the Bernhard's patch] Signed-off-by: Bernhard Voelker Signed-off-by: Karel Zak --- diff --git a/tests/ts/blkid/md-raid1-part b/tests/ts/blkid/md-raid1-part index 634c9a1541..e13901d3cc 100755 --- a/tests/ts/blkid/md-raid1-part +++ b/tests/ts/blkid/md-raid1-part @@ -59,8 +59,6 @@ sleep 3 MD_DEVNAME=md8 MD_DEVICE=/dev/${MD_DEVNAME} -###exit 1 - ts_log "Create RAID1 device" /sbin/mdadm -q -S ${MD_DEVICE} &> /dev/null /sbin/mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 --level=1 \ @@ -83,7 +81,11 @@ sleep 3 rmmod scsi_debug ts_fdisk_clean -# remove generated UUIDs -sed -i -e 's/ID_FS_UUID.*//g' $TS_OUTPUT +# substitue UUIDs and major/minor number before comparison +sed -i \ + -e 's/^\(ID_FS_UUID\)=.*/\1=__ts_uuid__/' \ + -e 's/^\(ID_FS_UUID_ENC\)=.*/\1=__ts_uuid_enc__/' \ + -e 's/^\(ID_PART_ENTRY_DISK\)=.*/\1=__ts_majorminor__/' \ + $TS_OUTPUT ts_finalize