Loading src/tests/ryu-openflow/.gitlab-ci.yml +2 −1 Original line number Original line Diff line number Diff line Loading @@ -259,12 +259,13 @@ end2end_test ryu-openflow: local src=$1 dst=$2 pattern=$3 local src=$1 dst=$2 pattern=$3 local output local output output=$(curl -s "http://172.254.252.11:5000/ping?source=${src}&target=${dst}&count=3") output=$(curl -s "http://172.254.252.11:5000/ping?source=${src}&target=${dst}&count=3") echo "$output" if echo "$output" | grep -E "$pattern" >/dev/null; then if echo "$output" | grep -E "$pattern" >/dev/null; then echo "PASSED ${src}->${dst} echo "PASSED ${src}->${dst} else else echo "FAILED ${src}->${dst} echo "FAILED ${src}->${dst} return 1 fi fi echo "$output" | grep -E "$pattern" } } # Run end-to-end test: test no connectivity with ping # Run end-to-end test: test no connectivity with ping Loading Loading
src/tests/ryu-openflow/.gitlab-ci.yml +2 −1 Original line number Original line Diff line number Diff line Loading @@ -259,12 +259,13 @@ end2end_test ryu-openflow: local src=$1 dst=$2 pattern=$3 local src=$1 dst=$2 pattern=$3 local output local output output=$(curl -s "http://172.254.252.11:5000/ping?source=${src}&target=${dst}&count=3") output=$(curl -s "http://172.254.252.11:5000/ping?source=${src}&target=${dst}&count=3") echo "$output" if echo "$output" | grep -E "$pattern" >/dev/null; then if echo "$output" | grep -E "$pattern" >/dev/null; then echo "PASSED ${src}->${dst} echo "PASSED ${src}->${dst} else else echo "FAILED ${src}->${dst} echo "FAILED ${src}->${dst} return 1 fi fi echo "$output" | grep -E "$pattern" } } # Run end-to-end test: test no connectivity with ping # Run end-to-end test: test no connectivity with ping Loading