Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Tommy Webb
Tor Browser
Commits
5b5e8412
Commit
5b5e8412
authored
7 years ago
by
Steve Fink
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1400468 - Control verbosity, r=jonco
--HG-- extra : rebase_source : 950699da0c0d8c894542c71881cce3359a8c6697
parent
cf00ad12
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/src/devtools/rootAnalysis/analyze.py
+4
-1
4 additions, 1 deletion
js/src/devtools/rootAnalysis/analyze.py
js/src/devtools/rootAnalysis/t/testlib.py
+3
-2
3 additions, 2 deletions
js/src/devtools/rootAnalysis/t/testlib.py
with
7 additions
and
3 deletions
js/src/devtools/rootAnalysis/analyze.py
+
4
−
1
View file @
5b5e8412
...
...
@@ -231,10 +231,13 @@ parser.add_argument('--tag', '-t', type=str, nargs='?',
help
=
'
name of job, also sets build command to
"
build.<tag>
"'
)
parser
.
add_argument
(
'
--expect-file
'
,
type
=
str
,
nargs
=
'
?
'
,
help
=
'
deprecated option, temporarily still present for backwards compatibility
'
)
parser
.
add_argument
(
'
--verbose
'
,
'
-v
'
,
action
=
'
store_true
'
,
parser
.
add_argument
(
'
--verbose
'
,
'
-v
'
,
action
=
'
count
'
,
default
=
1
,
help
=
'
Display cut & paste commands to run individual steps
'
)
parser
.
add_argument
(
'
--quiet
'
,
'
-q
'
,
action
=
'
count
'
,
default
=
0
,
help
=
'
Suppress output
'
)
args
=
parser
.
parse_args
()
args
.
verbose
=
max
(
0
,
args
.
verbose
-
args
.
quiet
)
for
default
in
defaults
:
try
:
...
...
This diff is collapsed.
Click to expand it.
js/src/devtools/rootAnalysis/t/testlib.py
+
3
−
2
View file @
5b5e8412
...
...
@@ -19,10 +19,11 @@ def extract_unmangled(func):
class
Test
(
object
):
def
__init__
(
self
,
indir
,
outdir
,
cfg
):
def
__init__
(
self
,
indir
,
outdir
,
cfg
,
verbose
=
0
):
self
.
indir
=
indir
self
.
outdir
=
outdir
self
.
cfg
=
cfg
self
.
verbose
=
verbose
def
infile
(
self
,
path
):
return
os
.
path
.
join
(
self
.
indir
,
path
)
...
...
@@ -62,7 +63,7 @@ class Test(object):
analysis_scriptdir =
'
{scriptdir}
'
sixgill_bin =
'
{bindir}
'
'''
.
format
(
scriptdir
=
scriptdir
,
bindir
=
self
.
cfg
.
sixgill_bin
))
cmd
=
[
os
.
path
.
join
(
scriptdir
,
"
analyze.py
"
),
phase
]
cmd
=
[
os
.
path
.
join
(
scriptdir
,
"
analyze.py
"
),
'
-v
'
if
self
.
verbose
else
'
-q
'
,
phase
]
if
upto
:
cmd
+=
[
"
--upto
"
,
upto
]
cmd
.
append
(
"
--source=%s
"
%
self
.
indir
)
...
...
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