diff options
author | Jan Gelety <jgelety@cisco.com> | 2020-05-27 03:55:11 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2020-05-28 16:39:06 +0000 |
commit | 003e6447d9e9d4a6ad997f9e35dc0a7583709099 (patch) | |
tree | c312a11e398c207d2e6cf5f2581d24dcf2a27bc7 /resources/libraries | |
parent | 4b44e85b9b4b35c6075a8920e50ac4e1cac35072 (diff) |
FIX: check if testpmd is alive
Change-Id: I12f21a4a7ae7c8593c42fa8e6cc4d65e36d41270
Signed-off-by: Jan Gelety <jgelety@cisco.com>
(cherry picked from commit 018dc06b3cf5fdd4733a1221f9592a48ddd6664c)
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/bash/function/dpdk.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/libraries/bash/function/dpdk.sh b/resources/libraries/bash/function/dpdk.sh index 72c1e5ce17..1654cf811b 100644 --- a/resources/libraries/bash/function/dpdk.sh +++ b/resources/libraries/bash/function/dpdk.sh @@ -350,9 +350,11 @@ function dpdk_testpmd () { 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 |