diff options
Diffstat (limited to 'tests/ts/swapon/label')
-rwxr-xr-x | tests/ts/swapon/label | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts/swapon/label b/tests/ts/swapon/label index 056953a29..210a12c97 100755 --- a/tests/ts/swapon/label +++ b/tests/ts/swapon/label @@ -42,7 +42,7 @@ ts_device_has "LABEL" $LABEL $DEVICE \ $TS_CMD_SWAPON -L $LABEL >> $TS_OUTPUT 2>&1 -grep -q $DEVICE /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps" +grep -q "^$DEVICE\b" /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps" $TS_CMD_SWAPOFF $DEVICE |