summaryrefslogtreecommitdiff
path: root/test/runtests-quiet.sh
blob: 2b84b9f0e6d688d8cdfc83f5c28aafb1ad8bcef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

TESTS=("$@")
RESULT_FILE=$(mktemp)
{ ./runtests.sh "${TESTS[@]}"; } 2>&1 > "$RESULT_FILE"
RET="$?"
if [ "${RET}" -ne 0 ]; then
    cat "$RESULT_FILE"
fi
rm "$RESULT_FILE"
exit $RET