Skip to content

Commit 3ab4639

Browse files
committed
Allow juliatest results to be written to arbitrary file
1 parent 250b4bb commit 3ab4639

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/juliatests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ function test_path(test)
2929
end
3030

3131
nstmts = 10^4 # very quick, aborts a lot
32+
outputfile = "results.md"
3233
i = 1
3334
while i <= length(ARGS)
3435
global i
3536
a = ARGS[i]
3637
if a == "--nstmts"
3738
global nstmts = parse(Int, ARGS[i+1])
3839
deleteat!(ARGS, i:i+1)
40+
elseif a == "--output"
41+
global outputfile = ARGS[i+1]
42+
deleteat!(ARGS, i:i+1)
3943
else
4044
i += 1
4145
end
@@ -136,7 +140,7 @@ move_to_node1("Distributed")
136140
foreach(wait, all_tasks)
137141
end
138142

139-
open("results.md", "w") do io
143+
open(outputfile, "w") do io
140144
versioninfo(io)
141145
println(io, "Test run at: ", now())
142146
println(io)

0 commit comments

Comments
 (0)