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

Test Ryu-OpenFlow:

- Fixed ping tests in gitlab-ci
parent f520b8eb
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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