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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
14238ee2
Commit
14238ee2
authored
Nov 10, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bootable scenario arguments for OptionParser
parent
304ceb14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
qa/qa/scenario/bootable.rb
qa/qa/scenario/bootable.rb
+3
-5
No files found.
qa/qa/scenario/bootable.rb
View file @
14238ee2
...
...
@@ -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