Skip to content

Commit

Permalink
fix regexes, match for \. rather than wildcard .
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaeder committed Sep 19, 2024
1 parent 9e8f6d8 commit 5028642
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmark/run_benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ function benchmark(; name, rev, cmd)
result = deserialize(exp_tmp)
end

target = if contains(args[:target], r".data$")
target = if contains(args[:target], r"\.data$")
path = joinpath(original_path, args[:target])
deserialize(path)
elseif args[:target] == "latest"
file = sort(filter(contains(r"target*.data$"), readdir(original_path)))[end]
file = sort(filter(contains(r"target*\.data$"), readdir(original_path)))[end]
@info "Use file $file as target"
deserialize(joinpath(original_path, file))
else
Expand All @@ -163,10 +163,10 @@ end

baseline = if args[:baseline] ["nothing", "none"]
if args[:baseline] == "latest"
file = sort(filter(contains(r"baseline*.data$"), readdir(original_path)))[end]
file = sort(filter(contains(r"baseline*\.data$"), readdir(original_path)))[end]
@info "Use file $file as baseline"
deserialize(joinpath(original_path, file))
elseif contains(args[:baseline], r".data$")
elseif contains(args[:baseline], r"\.data$")
path = joinpath(original_path, args[:baseline])
deserialize(path)
elseif args[:baseline] ["nothing", "none"]
Expand Down

0 comments on commit 5028642

Please sign in to comment.