test-network: silence check for alternative names

This commit is contained in:
Yu Watanabe
2022-01-19 15:00:53 +09:00
parent df25b9e48c
commit 0eed039c92
+1 -1
View File
@@ -176,7 +176,7 @@ def expectedFailureIfAlternativeNameIsNotAvailable():
call('ip link add dummy98 type dummy', stderr=subprocess.DEVNULL)
rc = call('ip link prop add dev dummy98 altname hogehogehogehogehoge', stderr=subprocess.DEVNULL)
if rc == 0:
rc = call('ip link show dev hogehogehogehogehoge', stderr=subprocess.DEVNULL)
rc = call('ip link show dev hogehogehogehogehoge', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
if rc == 0:
supported = True