Skip to content

Commit

Permalink
Clean file path from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
badlamer committed Jan 31, 2020
1 parent 0a55916 commit 542faee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/parallel_tests/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require 'tempfile'
require 'parallel_tests'
require 'shellwords'
require 'pathname'

module ParallelTests
class CLI
Expand Down Expand Up @@ -239,7 +240,7 @@ def parse_options!(argv)
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)
Expand Down

0 comments on commit 542faee

Please sign in to comment.