summaryrefslogtreecommitdiffstats
path: root/common/ci
diff options
context:
space:
mode:
authorSzilard Cserey <szilard.cserey@ericsson.com>2015-09-04 11:33:13 +0200
committerJonas Bjurel <jonas.bjurel@ericsson.com>2015-09-07 11:22:45 +0000
commit7f8c963b4dbcc1e57e97e2637ad5a639594319fa (patch)
tree6af22731fe643d17f282dd10399028bd967c7215 /common/ci
parentab4950db472c20b57bff533f1f330b5b794aa35b (diff)
FIX for ip link state verification
Change-Id: Ibe0840a74b9fe7fc0041ce92190cf82f25ae9298 Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
Diffstat (limited to 'common/ci')
-rwxr-xr-xcommon/ci/setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ci/setup.sh b/common/ci/setup.sh
index 4d754a9..380ac4d 100755
--- a/common/ci/setup.sh
+++ b/common/ci/setup.sh
@@ -90,7 +90,7 @@ check_interface() {
ip link set dev ${interface} up
sleep 5
link_state=$(ip link show ${interface} | grep -oP 'state \K[^ ]+')
- if [[ ${link_state} != 'UP' ]]; then
+ if [[ ${link_state} == 'DOWN' ]]; then
echo "${red}Could not bring UP interface ${interface} link state is ${link_state}${reset}"
exit 1
fi