Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
635e8f11
Commit
635e8f11
authored
10 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Add -q option to apt-get for quieter logging
parent
9b5fa1d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/vm/build.py
+16
-10
16 additions, 10 deletions
util/vm/build.py
with
16 additions
and
10 deletions
util/vm/build.py
+
16
−
10
View file @
635e8f11
...
...
@@ -162,8 +162,8 @@ def srun( cmd, **kwargs ):
def
depend
():
"
Install package dependencies
"
log
(
'
* Installing package dependencies
'
)
run
(
'
sudo apt-get -y update
'
)
run
(
'
sudo
apt-get
install -y
'
run
(
'
sudo apt-get -
q
y update
'
)
run
(
'
sudo install -
q
y
'
'
kvm cloud-utils genisoimage qemu-kvm qemu-utils
'
'
e2fsprogs dnsmasq curl
'
'
python-setuptools mtools zip
'
)
...
...
@@ -490,7 +490,7 @@ def login( vm, user='mininet', password='mininet' ):
def
removeNtpd
(
vm
,
prompt
=
Prompt
,
ntpPackage
=
'
ntp
'
):
"
Remove ntpd and set clock immediately
"
log
(
'
* Removing ntpd
'
)
vm
.
sendline
(
'
sudo apt-get -y remove
'
+
ntpPackage
)
vm
.
sendline
(
'
sudo apt-get -
q
y remove
'
+
ntpPackage
)
vm
.
expect
(
prompt
)
# Try to make sure that it isn't still running
vm
.
sendline
(
'
sudo pkill ntpd
'
)
...
...
@@ -534,28 +534,34 @@ def coreTest( vm, prompt=Prompt ):
log
(
'
* Test
'
,
test
,
'
output:
'
)
log
(
vm
.
before
)
def
noneTest
(
vm
):
def
installPexpect
(
vm
,
prompt
=
Prompt
):
"
install pexpect
"
vm
.
sendline
(
'
sudo apt-get -qy install python-pexpect
'
)
vm
.
expect
(
prompt
)
def
noneTest
(
vm
,
prompt
=
Prompt
):
"
This test does nothing
"
installPexpect
(
vm
,
prompt
)
vm
.
sendline
(
'
echo
'
)
def
examplesquickTest
(
vm
,
prompt
=
Prompt
):
"
Quick test of mininet examples
"
vm
.
sendline
(
'
sudo apt-get install python-pexpect
'
)
vm
.
expect
(
prompt
)
installPexpect
(
vm
,
prompt
)
vm
.
sendline
(
'
sudo python ~/mininet/examples/test/runner.py -v -quick
'
)
def
examplesfullTest
(
vm
,
prompt
=
Prompt
):
"
Full (slow) test of mininet examples
"
vm
.
sendline
(
'
sudo apt-get install python-pexpect
'
)
vm
.
expect
(
prompt
)
installPexpect
(
vm
,
prompt
)
vm
.
sendline
(
'
sudo python ~/mininet/examples/test/runner.py -v
'
)
def
walkthroughTest
(
vm
,
prompt
=
Prompt
):
"
Test mininet walkthrough
"
vm
.
sendline
(
'
sudo apt-get install python-pexpect
'
)
vm
.
expect
(
prompt
)
installPexpect
(
vm
,
prompt
)
vm
.
sendline
(
'
sudo python ~/mininet/mininet/test/test_walkthrough.py -v
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment