]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - tests/ts/swapon/devname
tests: split stdout and stderr
[thirdparty/util-linux.git] / tests / ts / swapon / devname
index 7469dcb18072209b175d9f336c13785cf7541241..9972f6c3085127d4e431cb3c08095b0c883cd9d9 100755 (executable)
@@ -36,7 +36,7 @@ $TS_CMD_MKSWAP $DEVICE > /dev/null 2>> $TS_OUTPUT \
 
 ts_device_has "TYPE" "swap" $DEVICE || ts_die "Cannot find swap on $DEVICE"
 
-$TS_CMD_SWAPON $DEVICE >> $TS_OUTPUT 2>&1
+$TS_CMD_SWAPON $DEVICE >> $TS_OUTPUT 2>> $TS_ERRLOG
 
 grep -q "^$DEVICE\b" /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps"