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