Not sure if empty output / no line message is an error

This commit is contained in:
Nico Schottelius 2019-07-13 19:14:02 +02:00
parent 6c770567ab
commit 85fee75077
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash 2>&1 |
expected_line=$(grep ^expected LOG | sed -e 's/.*= <//' -e 's/.*= (//')
actual_line=$(grep ^actual LOG | sed -e 's/.*= <//' -e 's/.*= (//')
# if [ -z "$expected_line" ]; then
# echo "Empty packet grep -- probably broken - aborting"
# exit 1
# fi
if [ "$expected_line" != "$actual_line" ]; then
echo packet mismatch