File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,21 @@ mktempdir() do tmpdir
27
27
@info " with old PATH" Sys. which (" srun" )
28
28
withenv (new_env... ) do
29
29
@info " with new PATH" Sys. which (" srun" )
30
+
30
31
if Base. VERSION >= v " 1.2-"
31
- T_expected = TaskFailedException
32
+ expected_outer_ex_T = TaskFailedException
33
+ expected_inner_ex_INSTANCE = ErrorException (" launch_timeout exceeded" )
32
34
else
33
- T_expected = Base. IOError
35
+ expected_outer_ex_T = Base. IOError
36
+ expected_inner_ex_INSTANCE = Base. IOError (" hello world" )
34
37
end
38
+
35
39
mgr = SlurmClusterManager. SlurmManager ()
36
- @test_throws T_expected Distributed. addprocs (mgr)
40
+ test_result = @test_throws T_expected Distributed. addprocs (mgr)
41
+ cfg = ConfigForTestingTaskFailedException (;
42
+ expected_outer_ex_T,
43
+ expected_inner_ex_INSTANCE,
44
+ )
45
+ test_task_failed_exception (test_result, cfg)
37
46
end
38
47
end
You can’t perform that action at this time.
0 commit comments