File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
@testset " get_slurm_ntasks_int()" begin
2
- c = withenv (SLURM_NTASKS => " 12" ) do
2
+ c = withenv (" SLURM_NTASKS" => " 12" ) do
3
3
SlurmClusterManager. get_slurm_ntasks_int ()
4
4
end
5
5
@test c == 12
10
10
end
11
11
12
12
@testset " get_slurm_jobid_int()" begin
13
- a = withenv (" SLURM_JOB_ID" => " 34" , SLURM_JOBID => nothing ) do
13
+ a = withenv (" SLURM_JOB_ID" => " 34" , " SLURM_JOBID" => nothing ) do
14
14
SlurmClusterManager. get_slurm_jobid_int ()
15
15
end
16
16
@test a == 34
17
17
18
- b = withenv (" SLURM_JOB_ID" => nothing , SLURM_JOBID => " 56" ) do
18
+ b = withenv (" SLURM_JOB_ID" => nothing , " SLURM_JOBID" => " 56" ) do
19
19
SlurmClusterManager. get_slurm_jobid_int ()
20
20
end
21
21
@test a == 56
22
22
23
- withenv (" SLURM_JOB_ID" => nothing , SLURM_JOBID => nothing ) do
23
+ withenv (" SLURM_JOB_ID" => nothing , " SLURM_JOBID" => nothing ) do
24
24
@test_throws ErrorException SlurmClusterManager. get_slurm_jobid_int ()
25
25
end
26
26
end
You can’t perform that action at this time.
0 commit comments