lib/parallel_tests/cli.rb in parallel_tests-2.30.1 vs lib/parallel_tests/cli.rb in parallel_tests-2.31.0

- old
+ new

@@ -1,9 +1,10 @@ require 'optparse' require 'tempfile' require 'parallel_tests' require 'shellwords' +require 'pathname' module ParallelTests class CLI def run(argv) Signal.trap("INT") { handle_interrupt } @@ -237,10 +238,10 @@ end files, remaining = extract_file_paths(argv) unless options[:execute] abort "Pass files or folders to run" unless files.any? - options[:files] = files + options[:files] = files.map { |file_path| Pathname.new(file_path).cleanpath.to_s } end append_test_options(options, remaining) options[:group_by] ||= :filesize if options[:only_group]