Change-Id: I12f21a4a7ae7c8593c42fa8e6cc4d65e36d41270
Signed-off-by: Jan Gelety <jgelety@cisco.com>
for attempt in {1..60}; do
echo "Checking if testpmd is alive, attempt nr ${attempt}"
- if fgrep "Press enter to exit" screenlog.0; then
- cat screenlog.0
- exit 0
+ if fgrep "Press enter to exit" screenlog.0 && \
+ fgrep "Port 0: link state change event" screenlog.0 && \
+ fgrep "Port 1: link state change event" screenlog.0; then
+ cat screenlog.0
+ exit 0
fi
sleep 1
done