lib/actir/parallel_tests/cli.rb in actir-1.4.2 vs lib/actir/parallel_tests/cli.rb in actir-1.4.3

- old
+ new

@@ -9,11 +9,11 @@ class CLI def run(argv) $env = "online" options = parse_options!(argv) num_processes = Actir::ParallelTests.determine_number_of_processes(options[:count]) - $mode = Actir::ParallelTests.determine_run_env(options[:mode]) + $mode = Actir::ParallelTests.determine_run_mode(options[:mode]) if options[:execute] execute_shell_command_in_parallel(options[:execute], num_processes, options) else run_tests_in_parallel(num_processes, options) end @@ -182,10 +182,10 @@ # found - order of finding files # filesize - by size of the file # default - filesize # TEXT # ) { |type| options[:group_by] = type.to_sym } - opts.on("-e [online][qatest]", String, "set environment to run testcase, default: online") { |env| env = "online" if ((env != "qatest" && env != "online")|| (env == nil)); $env = env;} + opts.on("-e [online][qatest]", String, "set environment to run testcase, default: online") { |env| env = "online" if ((env != "qatest" && env != "online")||(env == nil)); $env = env} opts.on("-r [TIMES]", "--rerun [TIMES]", Integer, "rerun times for failure&error testcase, default: 0") { |n| options[:rerun] = n } opts.on("-u", "--update", "Update Baifubao's cookies") { options[:update] = true } opts.on("--verbose", "Print more output") { options[:verbose] = true } opts.on("--log", "record exec result to logfile") { options[:log] = true} opts.on("--report", "make a report to show the test result") { options[:report] = true}