Skip to content

Commit 5372cd5

Browse files
committed
Update openwrt script
1 parent 53f1420 commit 5372cd5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Docker/OpenWrt/runTests.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/sh
22

33
runCMD() { # usage: runCMD "<command>" "<retVal>"
4-
eval $1 >/dev/null 2>&1
4+
TMP_FILE=$(mktemp)
5+
eval $1 > $TMP_FILE 2>&1
56
RETVAL=$?
67
if [ "$RETVAL" != "$2" ]; then
7-
echo "Command ($1) returned ${RETVAL}, but expected $2. Rerunning with output to terminal:"
8-
eval $1
8+
echo "Command ($1) returned ${RETVAL}, but expected $2. Error output:"
9+
cat $TMP_FILE
910
exit 1
1011
fi
1112
}

0 commit comments

Comments
 (0)