Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-13423 tests: cleanup_netns correctly set result
[fs/lustre-release.git]
/
lustre
/
tests
/
sanity-lnet.sh
diff --git
a/lustre/tests/sanity-lnet.sh
b/lustre/tests/sanity-lnet.sh
index
4a78b38
..
b7217e0
100755
(executable)
--- a/
lustre/tests/sanity-lnet.sh
+++ b/
lustre/tests/sanity-lnet.sh
@@
-109,9
+109,7
@@
setup_netns() {
cleanup_netns() {
(ip netns list | grep -q $TESTNS) && ip netns del $TESTNS
- if ip link show test1pl >/dev/null 2>&1; then
- ip link del test1pl
- fi
+ ip link show test1pl >& /dev/null && ip link del test1pl || return 0
}
configure_dlc() {