Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
FIX: check if testpmd is alive
[csit.git]
/
resources
/
libraries
/
bash
/
function
/
dpdk.sh
diff --git
a/resources/libraries/bash/function/dpdk.sh
b/resources/libraries/bash/function/dpdk.sh
index
72c1e5c
..
1654cf8
100644
(file)
--- 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}"
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
fi
sleep 1
done