]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - tests/ts/mount/fstab-uuid2devname
tests: split stdout and stderr
[thirdparty/util-linux.git] / tests / ts / mount / fstab-uuid2devname
index 39aed65a93c42c52165fccb50119467c41197cf0..47c7a7315a8fa26ead74081e7912e51f78c593aa 100755 (executable)
@@ -40,12 +40,12 @@ ts_fstab_add "$DEVICE"
 ts_udevadm_settle "$DEVICE" "UUID"
 
 # variant A)
-$TS_CMD_MOUNT -U $UUID >> $TS_OUTPUT 2>&1
+$TS_CMD_MOUNT -U $UUID >> $TS_OUTPUT 2>> $TS_ERRLOG
 ts_is_mounted $DEVICE || ts_die "A) Cannot find $DEVICE in /proc/mounts"
 $TS_CMD_UMOUNT $DEVICE || ts_die "A) Cannot umount $DEVICE"
 
 # variant B)
-$TS_CMD_MOUNT "UUID=$UUID" >> $TS_OUTPUT 2>&1
+$TS_CMD_MOUNT "UUID=$UUID" >> $TS_OUTPUT 2>> $TS_ERRLOG
 ts_is_mounted $DEVICE || ts_die "B) Cannot find $DEVICE in /proc/mounts"
 $TS_CMD_UMOUNT $DEVICE || ts_die "B) Cannot umount $DEVICE"