From ed191adb2f769062f5bf0bf83eda7e5b1c1c3bc7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 14 Mar 2021 19:19:44 +0100 Subject: [PATCH] tests: option :post_args for adding args at the end of the command line --- tests/test.d/simple_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test.d/simple_test.rb b/tests/test.d/simple_test.rb index ef06f9224..480265a89 100644 --- a/tests/test.d/simple_test.rb +++ b/tests/test.d/simple_test.rb @@ -114,7 +114,7 @@ class SimpleTest def test_merge file, *args options = args.extract_options! - full_command_line = [ options[:args], file ].flatten.join(' ') + full_command_line = [ options[:args], file, options[:post_args] || [] ].flatten.join(' ') options[:name] ||= full_command_line options[:result_type] ||= :hash options[:no_variable_data] = true unless options.key?(:no_variable_data) @@ -158,7 +158,7 @@ class SimpleTest def test_info file, *args options = args.extract_options! - full_command_line = [ options[:args], file ].flatten.join(' ') + full_command_line = [ options[:args], file, options[:post_args] || [] ].flatten.join(' ') options[:name] ||= full_command_line @blocks[:tests] << { :name => full_command_line, @@ -172,7 +172,7 @@ class SimpleTest def test_merge_unsupported file, *args options = args.extract_options! - full_command_line = [ options[:args], file ].flatten.join(' ') + full_command_line = [ options[:args], file, options[:post_args] || [] ].flatten.join(' ') options[:name] ||= full_command_line @blocks[:tests] << { :name => full_command_line,