Commit 0edee567 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm: up the loopback device in a new network namespace

In this case we can run more tests
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 90649057
......@@ -1275,7 +1275,10 @@ def run_tests(opts):
opts['parallel'] = None
if opts['join_ns']:
subprocess.Popen(["ip", "netns", "add", "zdtm_netns"])
if subprocess.Popen(["ip", "netns", "add", "zdtm_netns"]).wait():
raise Exception("Unable to create a network namespace")
if subprocess.Popen(["ip", "netns", "exec", "zdtm_netns", "ip", "link", "set", "up", "dev", "lo"]).wait():
raise Exception("ip link set up dev lo")
l = launcher(opts, len(torun))
try:
......
{'flags': 'suid samens'}
{'flags': 'suid'}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment