Commit f520b8eb authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Test Ryu-OpenFlow:

- Fixed ping tests in gitlab-ci
parent 420fb2b9
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -259,8 +259,12 @@ end2end_test ryu-openflow:
        local src=$1 dst=$2 pattern=$3
        local output
        output=$(curl -s "http://172.254.252.11:5000/ping?source=${src}&target=${dst}&count=3")
        echo "$output"
        echo "$output" | grep -E "$pattern"
        if echo "$output" | grep -E "$pattern" >/dev/null; then
          echo "PASSED ${src}->${dst}
        else
          echo "FAILED ${src}->${dst}
          return 1
        fi
      }

    # Run end-to-end test: test no connectivity with ping