diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-11-10 09:15:20 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-11-10 09:15:20 +0100 |
commit | 14238ee238697a80defc480bc8385dc91550598d (patch) | |
tree | 95f062ad39bc5841666994f515a65f94aeaae0d3 | |
parent | 304ceb144cca36dbcefcfb508b0dac220f76c9e1 (diff) | |
download | gitlab-ce-14238ee238697a80defc480bc8385dc91550598d.tar.gz |
Fix bootable scenario arguments for OptionParser
-rw-r--r-- | qa/qa/scenario/bootable.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qa/qa/scenario/bootable.rb b/qa/qa/scenario/bootable.rb index 22496bcc2fc..cf8996cd597 100644 --- a/qa/qa/scenario/bootable.rb +++ b/qa/qa/scenario/bootable.rb @@ -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 |