verify part of scan result, return result of server side

This commit is contained in:
john30
2017-04-17 11:49:53 +02:00
parent 9daa00a33c
commit 2b019c57e2
+8
View File
@@ -295,9 +295,17 @@ if [ "$status" = 0 ]; then
echo "commands done"
kill $lstpid
fi
verify=`./src/tools/ebusctl -p 8877 info|egrep "^address 04:"`
if [ "x$verify" != 'xaddress 04: slave #25, scanned "MF=153;ID=BBBBB;SW=3031;HW=3031' ]; then
echo "error unexpected result from info command: $verify"
kill $pid
kill $srvpid
exit 1
fi
echo "ebusd log:"
cat "$PWD/ebusd.log"
sleep 5
kill $pid
kill $srvpid
echo "done."
wait $srvpid