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
3151804c
Commit
3151804c
authored
11 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Add option to set pexpect timeout
parent
f66e9af5
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
+6
-2
6 additions, 2 deletions
util/vm/build.py
with
6 additions
and
2 deletions
util/vm/build.py
+
6
−
2
View file @
3151804c
...
...
@@ -828,7 +828,7 @@ def testString():
def
parseArgs
():
"
Parse command line arguments and run
"
global
LogToConsole
,
NoKVM
,
Branch
,
Zip
global
LogToConsole
,
NoKVM
,
Branch
,
Zip
,
TIMEOUT
parser
=
argparse
.
ArgumentParser
(
description
=
'
Mininet VM build script
'
,
epilog
=
buildFlavorString
()
+
'
'
+
testString
()
)
...
...
@@ -845,13 +845,15 @@ def parseArgs():
parser
.
add_argument
(
'
-n
'
,
'
--nokvm
'
,
action
=
'
store_true
'
,
help
=
"
Don
'
t use kvm - use tcg emulation instead
"
)
parser
.
add_argument
(
'
-m
'
,
'
--memory
'
,
metavar
=
'
MB
'
,
type
=
int
,
default
=
1024
,
help
=
'
VM memory size in MB
'
)
default
=
1024
,
help
=
'
VM memory size in MB
'
)
parser
.
add_argument
(
'
-i
'
,
'
--image
'
,
metavar
=
'
image
'
,
default
=
[],
action
=
'
append
'
,
help
=
'
Boot and test an existing VM image
'
)
parser
.
add_argument
(
'
-t
'
,
'
--test
'
,
metavar
=
'
test
'
,
default
=
[],
action
=
'
append
'
,
help
=
'
specify a test to run
'
)
parser
.
add_argument
(
'
-w
'
,
'
--timeout
'
,
metavar
=
'
timeout
'
,
type
=
int
,
default
=
0
,
help
=
'
set expect timeout
'
)
parser
.
add_argument
(
'
-r
'
,
'
--run
'
,
metavar
=
'
cmd
'
,
default
=
''
,
help
=
'
specify a command line to run before tests
'
)
parser
.
add_argument
(
'
-p
'
,
'
--post
'
,
metavar
=
'
cmd
'
,
default
=
''
,
...
...
@@ -878,6 +880,8 @@ def parseArgs():
Branch
=
args
.
branch
if
args
.
zip
:
Zip
=
True
if
args
.
timeout
:
TIMEOUT
=
args
.
timeout
if
not
args
.
test
and
not
args
.
run
and
not
args
.
post
:
args
.
test
=
[
'
sanity
'
,
'
core
'
]
for
flavor
in
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