9d84b2
diff -up util-linux-2.23.2/tests/functions.sh.kzak util-linux-2.23.2/tests/functions.sh
9d84b2
--- util-linux-2.23.2/tests/functions.sh.kzak	2013-06-13 09:46:10.554651768 +0200
9d84b2
+++ util-linux-2.23.2/tests/functions.sh	2013-09-09 10:01:23.355469268 +0200
9d84b2
@@ -483,7 +483,7 @@ function ts_scsi_debug_init {
9d84b2
 	modprobe scsi_debug $*
9d84b2
 	[ "$?" == 0 ] || ts_die "Cannot init device"
9d84b2
 
9d84b2
-	DEVNAME=$(grep scsi_debug /sys/block/*/device/model | awk -F '/' '{print $4}')
9d84b2
+	DEVNAME=$(grep --with-filename scsi_debug /sys/block/*/device/model | awk -F '/' '{print $4}')
9d84b2
 	[ "x${DEVNAME}" == "x" ] && ts_die "Cannot find device"
9d84b2
 
9d84b2
 	DEVICE="/dev/${DEVNAME}"
9d84b2
diff -up util-linux-2.23.2/tests/ts/cramfs/mkfs.kzak util-linux-2.23.2/tests/ts/cramfs/mkfs
9d84b2
--- util-linux-2.23.2/tests/ts/cramfs/mkfs.kzak	2013-06-13 09:46:10.557651793 +0200
9d84b2
+++ util-linux-2.23.2/tests/ts/cramfs/mkfs	2013-09-09 10:01:23.355469268 +0200
9d84b2
@@ -80,7 +80,7 @@ cd $TS_MOUNTPOINT
9d84b2
 
9d84b2
 ts_log "list the image"
9d84b2
 export TZ='GMT-1'
9d84b2
-ls -laR --time-style=long-iso . >> $TS_OUTPUT
9d84b2
+ls -laR --time-style=long-iso . | sed 's:\. : :g' >> $TS_OUTPUT
9d84b2
 echo >> $TS_OUTPUT
9d84b2
 
9d84b2
 ts_log "list checksums from new data"
9d84b2
diff -up util-linux-2.23.2/tests/ts/libmount/context-utab.kzak util-linux-2.23.2/tests/ts/libmount/context-utab
9d84b2
--- util-linux-2.23.2/tests/ts/libmount/context-utab.kzak	2013-06-13 09:46:10.561651827 +0200
9d84b2
+++ util-linux-2.23.2/tests/ts/libmount/context-utab	2013-09-09 10:01:23.355469268 +0200
9d84b2
@@ -85,7 +85,9 @@ grep -q $DEVICE $LIBMOUNT_UTAB && \
9d84b2
 	echo "umount (mountpoint) failed: found $DEVICE in $LIBMOUNT_UTAB" >> $TS_OUTPUT 2>&1
9d84b2
 ts_finalize_subtest
9d84b2
 
9d84b2
+
9d84b2
 if [ -x "/sbin/mkfs.btrfs" ]; then
9d84b2
+	$TS_CMD_WIPEFS -a  $DEVICE &> /dev/null
9d84b2
 	ts_log "Create filesystem [btrfs]"
9d84b2
 	/sbin/mkfs.btrfs -L "$LABEL" $DEVICE &> /dev/null
9d84b2
 	udevadm settle