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

« back to all changes in this revision

Viewing changes to tests/ts/swapon/devname

  • 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:
30
30
$TS_CMD_MKSWAP $DEVICE > /dev/null 2>> $TS_OUTPUT \
31
31
 || ts_die "Cannot make swap $DEVICE" $DEVICE
32
32
 
33
 
ts_device_has "TYPE" "swap" $DEVICE || ts_die "Cannot found swap on $DEVICE" $DEVICE
 
33
ts_device_has "TYPE" "swap" $DEVICE || ts_die "Cannot find swap on $DEVICE" $DEVICE
34
34
 
35
35
LD_LIBRARY_PATH="$U_L_LIBRARY_PATH" \
36
36
                $TS_CMD_SWAPON $DEVICE 2>&1 >> $TS_OUTPUT
37
37
 
38
 
grep -q $DEVICE /proc/swaps || ts_die "Cannot found $DEVICE in /proc/swaps" $DEVICE
 
38
grep -q $DEVICE /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps" $DEVICE
39
39
 
40
40
ts_swapoff $DEVICE
41
41
ts_device_deinit $DEVICE