Skip to content

Commit

Permalink
Redirect grep output to file
Browse files Browse the repository at this point in the history
  • Loading branch information
kthui committed Dec 8, 2022
1 parent 4e62167 commit 2ad7532
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions qa/L0_tf_gpu_io/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ for BACKEND in $BACKENDS; do
RET=1
fi

grep "is GPU tensor: true" $SERVER_LOG
grep "is GPU tensor: true" $SERVER_LOG >> grep.out.log
if [ $? -eq 0 ]; then
echo -e "\n***\n*** Failed. Expected neither input or output is GPU tensor\n***"
RET=1
Expand All @@ -98,7 +98,7 @@ for BACKEND in $BACKENDS; do
RET=1
fi

grep "is GPU tensor: true" $SERVER_LOG
grep "is GPU tensor: true" $SERVER_LOG >> grep.out.log
if [ $? -ne 0 ]; then
echo -e "\n***\n*** Failed. Expected input and output are GPU tensors\n***"
RET=1
Expand Down Expand Up @@ -147,7 +147,7 @@ if (( $? != 0 )); then
cat $CLIENT_LOG
RET=1
fi
grep "is GPU tensor: true" $SERVER_LOG
grep "is GPU tensor: true" $SERVER_LOG >> grep.out.log
if [ $? -ne 0 ]; then
echo -e "\n***\n*** Failed. Expected input and output are GPU tensors\n***"
RET=1
Expand All @@ -162,5 +162,4 @@ if [ $RET -eq 0 ]; then
else
echo -e "\n***\n*** Test FAILED\n***"
fi

exit $RET

0 comments on commit 2ad7532

Please sign in to comment.