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
b7548e68
Commit
b7548e68
authored
11 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Add walkthrough test and log build exceptions
parent
2f3e8c2b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/vm/build.py
+12
-5
12 additions, 5 deletions
util/vm/build.py
with
12 additions
and
5 deletions
util/vm/build.py
+
12
−
5
View file @
b7548e68
...
...
@@ -494,6 +494,13 @@ def examplesfullTest( vm, prompt=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
)
vm
.
sendline
(
'
sudo python ~/mininet/test/test_walkthrough.py -v
'
)
def
checkOutBranch
(
vm
,
branch
,
prompt
=
Prompt
):
vm
.
sendline
(
'
cd ~/mininet; git fetch; git pull --rebase; git checkout
'
+
branch
)
...
...
@@ -846,11 +853,11 @@ def parseArgs():
print
"
Unknown build flavor:
"
,
flavor
print
buildFlavorString
()
break
#
try:
build
(
flavor
)
#
except Exception as e:
#
log( '* BUILD FAILED with exception: ', e )
#
exit( 1 )
try
:
build
(
flavor
)
except
Exception
as
e
:
log
(
'
* BUILD FAILED with exception:
'
,
e
)
exit
(
1
)
for
image
in
args
.
image
:
bootAndRunTests
(
image
,
tests
=
args
.
test
)
if
not
(
args
.
depend
or
args
.
list
or
args
.
clean
or
args
.
flavor
...
...
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