Code Review
/
genesis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
591a1c4
)
FIX for ip link state verification
91/1391/2
author
Szilard Cserey
<szilard.cserey@ericsson.com>
Fri, 4 Sep 2015 09:33:13 +0000
(11:33 +0200)
committer
Szilard Cserey
<szilard.cserey@ericsson.com>
Mon, 7 Sep 2015 11:12:56 +0000
(13:12 +0200)
Change-Id: Ibe0840a74b9fe7fc0041ce92190cf82f25ae9298
Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
common/ci/setup.sh
patch
|
blob
|
history
diff --git
a/common/ci/setup.sh
b/common/ci/setup.sh
index
4d754a9
..
380ac4d
100755
(executable)
--- 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