aboutsummaryrefslogtreecommitdiff
path: root/test/runtests-quiet.sh
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:12:36 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:12:36 +0000
commit04d90211ecab6b0ddadadcf6c182f4607b9b72a8 (patch)
treeebe9c872e416346e4b333e5062da32401c8e0a73 /test/runtests-quiet.sh
parentd53db6851ea17b2d219d084e1afc683b8b62b105 (diff)
parent1d27ff1934c5c4292dc00fba7f7f8ae411ed42f5 (diff)
downloadliburing-04d90211ecab6b0ddadadcf6c182f4607b9b72a8.tar.gz
Change-Id: Ic34ca4f84d38b3a9593603ab4791da9a91806588
Diffstat (limited to 'test/runtests-quiet.sh')
-rwxr-xr-xtest/runtests-quiet.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/runtests-quiet.sh b/test/runtests-quiet.sh
new file mode 100755
index 0000000..2bc7da0
--- /dev/null
+++ b/test/runtests-quiet.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+TESTS=("$@")
+RESULT_FILE=$(mktemp)
+./runtests.sh "${TESTS[@]}" > "$RESULT_FILE" 2>&1
+RET="$?"
+if [ "${RET}" -ne 0 ]; then
+ cat "$RESULT_FILE"
+fi
+rm "$RESULT_FILE"
+exit $RET