Have the api-test.sh script cleanup after itself

This commit is contained in:
Kris Moore
2016-02-01 14:18:40 -05:00
parent a5c594f3da
commit e9fd60096b

View File

@@ -95,7 +95,8 @@ if [ $? -ne 0 ] ; then
echo "Failed.. Error output:"
cat /tmp/.rstErr
fi
rm $ofile
rm /tmp/.rstErr
# Now check the response via WebSockets
export NODE_TLS_REJECT_UNAUTHORIZED=0
@@ -109,3 +110,4 @@ echo "" | tee -a $ofile
echo "WebSocket Response:" | tee -a $ofile
echo "-------------------------------" | tee -a $ofile
echo "{ \"namespace\":\"${namesp}\", \"name\":\"${name}\", \"id\":\"fooid\", \"args\":${payload} }" | node sendwebsocket.js "$fuser" "$fpass" | tee -a $ofile
rm $ofile