Commit d048a549 authored by Zhi Xuen Lai's avatar Zhi Xuen Lai
Browse files

Give user a better knowledge of what's happening

parent 9ae98a49
......@@ -28,8 +28,14 @@ sleep 3
import -window root "${screenshot_path}"
# Open telnet session, connect to model, look for telnet output
function fn() {
unbuffer nc localhost 5003 -w55 | grep -q "Start blinking"
return $?
unbuffer nc localhost 5003 -w55 | grep -i "Start blinking"
status=$?
if [ $status -eq 0 ]; then
echo "Print statement found"
else
echo "Print statement not found"
fi
return $status
}
fn
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment