mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-12 11:06:54 +08:00
allow passing multiple arguments in test_args (#118)
Co-authored-by: Markus Hauru <markus@mhauru.org> Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ed05f1e927
commit
df0572688c
@@ -8,7 +8,7 @@ function kwargs(; coverage,
|
||||
force_latest_compatible_version,
|
||||
allow_reresolve,
|
||||
julia_args::AbstractVector{<:AbstractString}=String[],
|
||||
test_args::AbstractString="",
|
||||
test_args::AbstractVector{<:AbstractString}=String[],
|
||||
)
|
||||
if coverage isa AbstractString
|
||||
coverage = parse(Bool, coverage)
|
||||
@@ -58,9 +58,7 @@ function kwargs(; coverage,
|
||||
kwargs_dict[:allow_reresolve] = parse(Bool, allow_reresolve)
|
||||
end
|
||||
|
||||
if test_args != "" # avoid ambiguity by empty string in test_args
|
||||
kwargs_dict[:test_args] = [test_args]
|
||||
end
|
||||
kwargs_dict[:test_args] = test_args
|
||||
|
||||
return kwargs_dict
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user