File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 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
4
17
5
18
# test that slurm is available
6
19
@test ! (Sys. which (" sinfo" ) === nothing )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const hosts = map(workers()) do id
20
20
remotecall_fetch (() -> gethostname (), id)
21
21
end
22
22
sort! (hosts)
23
- println (hosts)
23
+ println (" List of hosts: " , hosts)
24
24
25
25
# We don't use `@assert` here, for reason described above.
26
26
if hosts != [" c1" , " c1" , " c2" , " c2" ]
You can’t perform that action at this time.
0 commit comments