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

« back to all changes in this revision

Viewing changes to tests/ts/mount/move

  • 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:
35
35
 
36
36
# check the bind
37
37
$TS_CMD_FINDMNT --kernel --target "$DIR_A" &> /dev/null
38
 
[ "$?" == "0" ] || ts_die "Cannot found binded $DIR_A in /proc/self/mountinfo"
 
38
[ "$?" == "0" ] || ts_die "Cannot find binded $DIR_A in /proc/self/mountinfo"
39
39
 
40
40
# move
41
41
$TS_CMD_MOUNT --move $DIR_A $DIR_B
42
42
 
43
43
# check the move
44
44
$TS_CMD_FINDMNT --kernel --target "$DIR_B" &> /dev/null
45
 
[ "$?" == "0" ] || ts_die "Cannot found binded $DIR_B in /proc/self/mountinfo"
 
45
[ "$?" == "0" ] || ts_die "Cannot find binded $DIR_B in /proc/self/mountinfo"
46
46
 
47
47
# clean up
48
48
$TS_CMD_UMOUNT $DIR_B