]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: fix redirection
authorStanislav Brabec <sbrabec@suse.cz>
Thu, 11 Feb 2016 19:40:29 +0000 (20:40 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 12 Feb 2016 09:39:14 +0000 (10:39 +0100)
commitb59c3bf292269be1a203f91563b961e0062e0a5f
tree10eea7c12ca0408aae5af5b799ded7d187fec8e0
parentc4af75a84ef3430003c77be2469869aaf3a63e2a
tests: fix redirection

Many tests do.
2>&1 >> $TS_OUTPUT
It redirects stdout to $TS_OUTPUT and stderr to stdout.

It could cause unintended ignoring of errors on strerr and false positive result
of the test.

Use
>> $TS_OUTPUT 2>&1
instead to redirect both stdout and stderr to $TS_OUTPUT.

Automatically created by:
cd tests/ts
sed -i 's:2>\&1 >> \$TS_OUTPUT:>> $TS_OUTPUT 2>\&1:g' $(fgrep -rl '2>&1 >> $TS_OUTPUT' .)

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
25 files changed:
tests/ts/cramfs/doubles
tests/ts/cramfs/fsck-endianness
tests/ts/cramfs/mkfs
tests/ts/hexdump/format-strings
tests/ts/minix/fsck
tests/ts/mount/devname
tests/ts/mount/fslists
tests/ts/mount/fstab-btrfs
tests/ts/mount/fstab-devname
tests/ts/mount/fstab-devname2label
tests/ts/mount/fstab-devname2uuid
tests/ts/mount/fstab-label
tests/ts/mount/fstab-label2devname
tests/ts/mount/fstab-label2uuid
tests/ts/mount/fstab-none
tests/ts/mount/fstab-symlink
tests/ts/mount/fstab-uuid
tests/ts/mount/fstab-uuid2devname
tests/ts/mount/fstab-uuid2label
tests/ts/mount/label
tests/ts/mount/regfile
tests/ts/mount/uuid
tests/ts/swapon/devname
tests/ts/swapon/label
tests/ts/swapon/uuid