summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmmar Faizi <ammarfaizi2@gnuweeb.org>2022-04-23 03:35:37 +0700
committerJens Axboe <axboe@kernel.dk>2022-04-22 15:15:20 -0600
commit2a2e58225cdb9f0c6f86c610c4d2d137a914e41d (patch)
tree8ce532c1448131ce5d6a40c2bf87aecbc143f958
parent770efd14e8b17ccf23a45c95ecc9d38de4e17011 (diff)
downloadliburing-2a2e58225cdb9f0c6f86c610c4d2d137a914e41d.tar.gz
liburing-2a2e58225cdb9f0c6f86c610c4d2d137a914e41d.tar.bz2
test/runtests-quiet.sh: Fixup redirection
1) command > file.txt will redirect the stdout to file.txt. 2) command > file.txt 2>&1 will redirect the stdout and stderr to file.txt. What we want is (2). Previous commits placed the "2>&1" wrong. Cc: Dylan Yudaken <dylany@fb.com> Fixes: 770efd14e8b17ccf23a45c95ecc9d38de4e17011 ("test/runtests-quiet.sh: fixup redirection") Fixes: 6480f692d62afbebb088febc369b30a63dbc2ea7 ("test: add make targets for each test") Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xtest/runtests-quiet.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runtests-quiet.sh b/test/runtests-quiet.sh
index 2b84b9f..2bc7da0 100755
--- a/test/runtests-quiet.sh
+++ b/test/runtests-quiet.sh
@@ -2,7 +2,7 @@
TESTS=("$@")
RESULT_FILE=$(mktemp)
-{ ./runtests.sh "${TESTS[@]}"; } 2>&1 > "$RESULT_FILE"
+./runtests.sh "${TESTS[@]}" > "$RESULT_FILE" 2>&1
RET="$?"
if [ "${RET}" -ne 0 ]; then
cat "$RESULT_FILE"