~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/ts/libmount/context-utab

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
sleep 3
28
28
 
29
29
DEVNAME=$(grep scsi_debug /sys/block/*/device/model | awk -F '/' '{print $4}')
30
 
[ "x${DEVNAME}" == "x" ] && ts_die "Cannot found device"
 
30
[ "x${DEVNAME}" == "x" ] && ts_die "Cannot find device"
31
31
 
32
32
DEVICE="/dev/${DEVNAME}"
33
33
 
64
64
mkdir -p $MOUNTPOINT &>  /dev/null
65
65
$TESTPROG --mount $DEVICE $MOUNTPOINT >> $TS_OUTPUT 2>&1
66
66
grep -q $DEVICE /proc/mounts || \
67
 
        echo "(by device) cannot found $DEVICE in /proc/mounts" >> $TS_OUTPUT 2>&1
 
67
        echo "(by device) cannot find $DEVICE in /proc/mounts" >> $TS_OUTPUT 2>&1
68
68
ts_finalize_subtest
69
69
 
70
70
ts_init_subtest "umount-by-devname"
78
78
mkdir -p $MOUNTPOINT &>  /dev/null
79
79
$TESTPROG --mount -o uhelper=foo,rw LABEL="$LABEL" $MOUNTPOINT >> $TS_OUTPUT 2>&1
80
80
grep -q $DEVICE $LIBMOUNT_UTAB || \
81
 
        echo "(by label) cannot found $DEVICE in $LIBMOUNT_UTAB" >> $TS_OUTPUT 2>&1
 
81
        echo "(by label) cannot find $DEVICE in $LIBMOUNT_UTAB" >> $TS_OUTPUT 2>&1
82
82
ts_finalize_subtest
83
83
 
84
84
ts_init_subtest "umount"
98
98
        mkdir -p $MOUNTPOINT &>  /dev/null
99
99
        $TESTPROG --mount -o uhelper=foo,rw,subvol=sub $DEVICE  $MOUNTPOINT >> $TS_OUTPUT 2>&1
100
100
        grep -q $DEVICE $LIBMOUNT_UTAB || \
101
 
                echo "cannot found $DEVICE in $LIBMOUNT_UTAB" >> $TS_OUTPUT 2>&1
 
101
                echo "cannot find $DEVICE in $LIBMOUNT_UTAB" >> $TS_OUTPUT 2>&1
102
102
        ts_finalize_subtest
103
103
 
104
104
        ts_log "All mount options (btrfs subvolume + utab) ---"