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

« back to all changes in this revision

Viewing changes to tests/ts/mount/fstab-label2devname

  • 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:
31
31
mkfs.ext3 -L $LABEL $DEVICE &> /dev/null || ts_die "Cannot make ext3 on $DEVICE" $DEVICE
32
32
 
33
33
ts_device_has "LABEL" $LABEL $DEVICE \
34
 
 || ts_die "Cannot found LABEL '$LABEL' on $DEVICE" $DEVICE
 
34
 || ts_die "Cannot find LABEL '$LABEL' on $DEVICE" $DEVICE
35
35
 
36
36
[ -d "$TS_MOUNTPOINT" ] || mkdir -p $TS_MOUNTPOINT
37
37
 
39
39
 
40
40
# variant A)
41
41
$TS_CMD_MOUNT -L $LABEL 2>&1 >> $TS_OUTPUT
42
 
ts_is_mounted $DEVICE || ts_die "A) Cannot found $DEVICE in /proc/mounts" $DEVICE
 
42
ts_is_mounted $DEVICE || ts_die "A) Cannot find $DEVICE in /proc/mounts" $DEVICE
43
43
$TS_CMD_UMOUNT $DEVICE || ts_die "A) Cannot umount $DEVICE" $DEVICE
44
44
 
45
45
# variant B)
46
46
$TS_CMD_MOUNT "LABEL=$LABEL" 2>&1 >> $TS_OUTPUT
47
 
ts_is_mounted $DEVICE || ts_die "B) Cannot found $DEVICE in /proc/mounts" $DEVICE
 
47
ts_is_mounted $DEVICE || ts_die "B) Cannot find $DEVICE in /proc/mounts" $DEVICE
48
48
$TS_CMD_UMOUNT $DEVICE || ts_die "B) Cannot umount $DEVICE" $DEVICE
49
49
 
50
50
ts_device_deinit $DEVICE