BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
qa
qa/bin/qa
+1
-1
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
self
.
perform
(
**
Runtime
::
Scenario
.
attributes
)
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