@@ -5,7 +5,7 @@ module Options
55 describe CommandLineParser do
66 let ( :parser ) { described_class . new }
77 let ( :test_opts ) { [ "-h" , "vcloud.cfg" , "--debug" , "--tests" , "test.rb" , "--help" ] }
8- let ( :full_opts_in ) { [ "--hosts" , "host.cfg" , "--options" , "opts_file" , "--helper" , "path_to_helper" , "--load-path" , "load_path" , "--tests" , "test1.rb,test2.rb,test3.rb" , "--pre-suite" , "pre_suite.rb" , "--post-suite" , "post_suite.rb" , "--pre-cleanup" , "pre_cleanup.rb" , "--no-provision" , "--preserve-hosts" , "always" , "--keyfile" , "../.ssh/id_rsa" , "--install" , "gitrepopath" , "-m" , "module" , "-q" , "--dry-run" , "--no-ntp" , "--repo-proxy" , "--config" , "anotherfile.cfg" , "--fail-mode" , "fast" , "--no-color" , "--no-color-host-output" , "--version" , "--log-level" , "info" , "--package-proxy" , "http://192.168.100.1:3128" , "--collect-perf-data" , "--parse-only" , "--validate" , "--timeout" , "40" , "--log-prefix" , "pants" , "--configure" , "--test-tag-and" , "1,2,3" , "--test-tag-or" , "4,5,6" , "--test-tag-exclude" , "7,8,9" , "--xml-time-order" ] }
8+ let ( :full_opts_in ) { [ "--hosts" , "host.cfg" , "--options" , "opts_file" , "--helper" , "path_to_helper" , "--load-path" , "load_path" , "--tests" , "test1.rb,test2.rb,test3.rb" , "--pre-suite" , "pre_suite.rb" , "--post-suite" , "post_suite.rb" , "--pre-cleanup" , "pre_cleanup.rb" , "--no-provision" , "--preserve-hosts" , "always" , "--keyfile" , "../.ssh/id_rsa" , "--install" , "gitrepopath" , "-m" , "module" , "-q" , "--dry-run" , "--no-ntp" , "--repo-proxy" , "--config" , "anotherfile.cfg" , "--fail-mode" , "fast" , "--no-color" , "--no-color-host-output" , "--version" , "--log-level" , "info" , "--package-proxy" , "http://192.168.100.1:3128" , "--collect-perf-data" , "--parse-only" , "--validate" , "--timeout" , "40" , "--log-prefix" , "pants" , "--configure" , "--test-tag-and" , "1,2,3" , "--test-tag-or" , "4,5,6" , "--test-tag-exclude" , "7,8,9" , "--xml-time-order" ] }
99 let ( :full_opts_out ) { { :hosts_file => "anotherfile.cfg" , :options_file => "opts_file" , :helper => "path_to_helper" , :load_path => "load_path" , :tests => "test1.rb,test2.rb,test3.rb" , :pre_suite => "pre_suite.rb" , :post_suite => "post_suite.rb" , :pre_cleanup => "pre_cleanup.rb" , :provision => false , :preserve_hosts => "always" , :keyfile => "../.ssh/id_rsa" , :install => "gitrepopath" , :modules => "module" , :quiet => true , :dry_run => true , :timesync => false , :repo_proxy => true , :fail_mode => "fast" , :color => false , :color_host_output => false , :beaker_version_print => true , :log_level => "info" , :package_proxy => "http://192.168.100.1:3128" , :collect_perf_data => "normal" , :parse_only => true , :validate => true , :timeout => "40" , :log_prefix => "pants" , :configure => true , :test_tag_and => "1,2,3" , :test_tag_or => "4,5,6" , :test_tag_exclude => "7,8,9" , :xml_time_enabled => true } }
1010 let ( :validate_true ) { [ "--validate" ] }
1111 let ( :validate_false ) { [ "--no-validate" ] }
0 commit comments