diff options
author | Stanislav Brabec | 2016-02-11 20:40:29 +0100 |
---|---|---|
committer | Karel Zak | 2016-02-12 10:39:14 +0100 |
commit | b59c3bf292269be1a203f91563b961e0062e0a5f (patch) | |
tree | 10eea7c12ca0408aae5af5b799ded7d187fec8e0 /tests/ts/minix | |
parent | tests: add btrfs mount tests (diff) | |
download | kernel-qcow2-util-linux-b59c3bf292269be1a203f91563b961e0062e0a5f.tar.gz kernel-qcow2-util-linux-b59c3bf292269be1a203f91563b961e0062e0a5f.tar.xz kernel-qcow2-util-linux-b59c3bf292269be1a203f91563b961e0062e0a5f.zip |
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>
Diffstat (limited to 'tests/ts/minix')
-rwxr-xr-x | tests/ts/minix/fsck | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/minix/fsck b/tests/ts/minix/fsck index 7a0bb8417..b57b20ec3 100755 --- a/tests/ts/minix/fsck +++ b/tests/ts/minix/fsck @@ -30,10 +30,10 @@ ts_device_init DEVICE=$TS_LODEV ts_log "create minix fs" -$TS_CMD_MKMINIX $DEVICE 2>&1 >> $TS_OUTPUT +$TS_CMD_MKMINIX $DEVICE >> $TS_OUTPUT 2>&1 ts_log "fsck minix fs" -$TS_CMD_FSCKMINIX $DEVICE 2>&1 >> $TS_OUTPUT +$TS_CMD_FSCKMINIX $DEVICE >> $TS_OUTPUT 2>&1 ts_finalize |