Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a396030a
Commit
a396030a
authored
Nov 10, 2017
by
Grzegorz Bizon
Committed by
Rémy Coutable
Nov 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bootable scenario arguments for OptionParser
parent
8331786c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
qa/bin/qa
qa/bin/qa
+1
-1
qa/qa/scenario/bootable.rb
qa/qa/scenario/bootable.rb
+3
-5
No files found.
qa/bin/qa
View file @
a396030a
...
...
@@ -4,4 +4,4 @@ require_relative '../qa'
QA
::
Scenario
.
const_get
(
ARGV
.
shift
)
.
launch!
(
*
ARGV
)
.
launch!
(
ARGV
)
qa/qa/scenario/bootable.rb
View file @
a396030a
...
...
@@ -11,6 +11,8 @@ module QA
module
ClassMethods
def
launch!
(
argv
)
return
self
.
perform
(
*
argv
)
unless
has_attributes?
arguments
=
OptionParser
.
new
do
|
parser
|
options
.
to_a
.
each
do
|
opt
|
parser
.
on
(
opt
.
arg
,
opt
.
desc
)
do
|
value
|
...
...
@@ -21,11 +23,7 @@ module QA
arguments
.
parse!
(
argv
)
if
has_attributes?
self
.
perform
(
**
Runtime
::
Scenario
.
attributes
)
else
self
.
perform
(
*
argv
)
end
end
private
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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