Commit 5256869c authored by Martín Ferrari's avatar Martín Ferrari

Fixes to the script.

parent 071af813
...@@ -57,21 +57,16 @@ assert ret == 0 ...@@ -57,21 +57,16 @@ assert ret == 0
print "Connectivity IPv4 OK!" print "Connectivity IPv4 OK!"
if X: if X:
app1 = node1.Popen("%s -geometry -0+0 -e %s -ni %s" % app = []
(xterm, nemu.environ.TCPDUMP_PATH, if1b.name), shell = True) for i in range(SIZE):
time.sleep(3) app.append(node[i].Popen("%s -geometry 800x100+0+%d -e %s -eni %s" %
app0 = node0.Popen("%s -geometry +0+0 -e ping -c 10 10.0.1.2" % xterm, (i * 100, xterm, nemu.environ.TCPDUMP_PATH,
shell = True) iface[(i, i + 1)].name),
app0.wait() shell=True))
app1.signal() app.append(node[-1].Popen(
app1.wait() "%s -geometry +0+0 -e ping -c 10 10.0.0.1" % xterm, shell = True))
# Now test the network conditions app[-1].wait()
# When using a args list, the shell is not needed for i in range(SIZE):
app2 = node2.Popen(["ping", "-q", "-c100000", "-f", "10.0.1.2"], app[i].signal()
stdout = subprocess.PIPE) app[i].wait()
out, err = app2.communicate()
print "Ping outout:"
print out
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