Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-bundle-testsuite
Commits
b4884975
Unverified
Commit
b4884975
authored
Feb 25, 2014
by
boklm
Browse files
Add options to disable mozmill or selenium tests
parent
ab59dc01
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbb-testsuite
View file @
b4884975
...
...
@@ -9,6 +9,8 @@ use FindBin;
my
%default_options
=
(
language
=>
'
en-US
',
mozmill
=>
1
,
selenium
=>
1
,
);
my
$options
=
get_options
(
@ARGV
);
sub
exit_error
{
...
...
@@ -17,7 +19,7 @@ sub exit_error {
}
sub
get_options
{
my
@options
=
qw(os=s language=s)
;
my
@options
=
qw(os=s language=s
mozmill! selenium!
)
;
my
%res
=
%default_options
;
Getopt::Long::
GetOptionsFromArray
(
\
@
_
,
\
%res
,
@options
)
||
exit
1
;
$res
{
files
}
=
\
@_
;
...
...
@@ -48,6 +50,7 @@ sub mozmill_run {
}
sub
mozmill_tests
{
return
unless
$options
->
{
mozmill
};
my
@tests
=
(
'
tbbScreenshot.js
',
);
...
...
@@ -57,6 +60,7 @@ sub mozmill_tests {
}
sub
selenium_tests
{
return
unless
$options
->
{
selenium
};
my
@tests
=
(
'
test_check.tpo.py
',
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment