Skip to content

Commit

Permalink
targets startswith ./
Browse files Browse the repository at this point in the history
  • Loading branch information
wookay committed Mar 15, 2019
1 parent 522e4b5 commit b6ec34a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ keywords = ["distributed", "test"]
license = "MIT"
desc = "some useful steps in tests"
authors = ["WooKyoung Noh <[email protected]>"]
version = "0.1.9"
version = "0.1.10"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
8 changes: 7 additions & 1 deletion src/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ function get_all_files(dir, skip, targets)
start_idx = parse(Int, val)
end
else
push!(filters, arg)
subpath = path_separator_to_slash(arg)
if subpath == "."
elseif startswith(subpath, "./")
push!(filters, subpath[3:end])
else
push!(filters, subpath)
end
end
end
end
Expand Down

0 comments on commit b6ec34a

Please sign in to comment.