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
...
@@ -57,21 +57,16 @@ assert ret == 0
print
"Connectivity IPv4 OK!"
print
"Connectivity IPv4 OK!"
if
X
:
if
X
:
app
1
=
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
)
)
app
1
.
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
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