Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nemu3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
nemu3
Commits
5256869c
Commit
5256869c
authored
Jul 14, 2012
by
Martín Ferrari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to the script.
parent
071af813
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
docs/debconf-talk/sample.py
docs/debconf-talk/sample.py
+12
-17
No files found.
docs/debconf-talk/sample.py
View file @
5256869c
...
...
@@ -57,21 +57,16 @@ assert ret == 0
print
"Connectivity IPv4 OK!"
if
X
:
app
1
=
node1
.
Popen
(
"%s -geometry -0+0 -e %s -ni %s"
%
(
xterm
,
nemu
.
environ
.
TCPDUMP_PATH
,
if1b
.
name
),
shell
=
True
)
time
.
sleep
(
3
)
app0
=
node0
.
Popen
(
"%s -geometry +0+0 -e ping -c 10 10.0.1.2"
%
xterm
,
shell
=
True
)
app0
.
wait
(
)
app
1
.
signal
()
app1
.
wait
(
)
app
=
[]
for
i
in
range
(
SIZE
):
app
.
append
(
node
[
i
].
Popen
(
"%s -geometry 800x100+0+%d -e %s -eni %s"
%
(
i
*
100
,
xterm
,
nemu
.
environ
.
TCPDUMP_PATH
,
iface
[(
i
,
i
+
1
)].
name
),
shell
=
True
)
)
app
.
append
(
node
[
-
1
].
Popen
(
"%s -geometry +0+0 -e ping -c 10 10.0.0.1"
%
xterm
,
shell
=
True
)
)
# Now test the network conditions
# When using a args list, the shell is not needed
app2
=
node2
.
Popen
([
"ping"
,
"-q"
,
"-c100000"
,
"-f"
,
"10.0.1.2"
],
stdout
=
subprocess
.
PIPE
)
out
,
err
=
app2
.
communicate
()
print
"Ping outout:"
print
out
app
[
-
1
].
wait
()
for
i
in
range
(
SIZE
):
app
[
i
].
signal
()
app
[
i
].
wait
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment