File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
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
+ x = withenv (" SLURM_NTASKS" => " 12" ) do
3
3
SlurmClusterManager. get_slurm_ntasks_int ()
4
4
end
5
- @test c == 12
5
+ @test x == 12
6
6
7
7
withenv (" SLURM_NTASKS" => nothing ) do
8
8
@test_throws ErrorException SlurmClusterManager. get_slurm_ntasks_int ()
9
9
end
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
+ x = withenv (" SLURM_JOB_ID" => " 34" , " SLURM_JOBID" => nothing ) do
14
14
SlurmClusterManager. get_slurm_jobid_int ()
15
15
end
16
- @test a == 34
16
+ @test x == 34
17
17
18
- b = withenv (" SLURM_JOB_ID" => nothing , " SLURM_JOBID" => " 56" ) do
18
+ x = withenv (" SLURM_JOB_ID" => nothing , " SLURM_JOBID" => " 56" ) do
19
19
SlurmClusterManager. get_slurm_jobid_int ()
20
20
end
21
- @test a == 56
21
+ @test x == 56
22
22
23
23
withenv (" SLURM_JOB_ID" => nothing , " SLURM_JOBID" => nothing ) do
24
24
@test_throws ErrorException SlurmClusterManager. get_slurm_jobid_int ()
You can’t perform that action at this time.
0 commit comments