Skip to content

Commit f668821

Browse files
authored
Merge pull request #35 from DilumAluthge-forks/dpa/more-testsuite-tweaks
More test suite tweaks
2 parents 3f7dd5e + 365e497 commit f668821

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

test/runtests.jl

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
#!/usr/bin/env julia
2-
3-
using Distributed, Test, SlurmClusterManager
1+
# We don't use `using Foo` here.
2+
# We either use `using Foo: hello, world`, or we use `import Foo`.
3+
# https://github.com/JuliaLang/julia/pull/42080
4+
import SlurmClusterManager
5+
import Distributed
6+
import Test
7+
8+
# Bring some names into scope, just for convenience:
9+
using Test: @testset, @test
10+
11+
const original_JULIA_DEBUG = strip(get(ENV, "JULIA_DEBUG", ""))
12+
if isempty(original_JULIA_DEBUG)
13+
ENV["JULIA_DEBUG"] = "SlurmClusterManager"
14+
else
15+
ENV["JULIA_DEBUG"] = original_JULIA_DEBUG * ",SlurmClusterManager"
16+
end
417

518
# test that slurm is available
619
@test !(Sys.which("sinfo") === nothing)

test/script.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const hosts = map(workers()) do id
2020
remotecall_fetch(() -> gethostname(), id)
2121
end
2222
sort!(hosts)
23-
println(hosts)
23+
println("List of hosts: ", hosts)
2424

2525
# We don't use `@assert` here, for reason described above.
2626
if hosts != ["c1", "c1", "c2", "c2"]

0 commit comments

Comments
 (0)