@@ -34,12 +34,14 @@ def get_executor(self) -> str:
34
34
return "slurm"
35
35
36
36
def get_executor_settings (self ) -> Optional [ExecutorSettingsBase ]:
37
+ self .REPORT_PATH = Path .cwd () / "efficiency_report_test"
38
+
37
39
return ExecutorSettings (
38
- efficiency_report = True ,
39
- init_seconds_before_status_checks = 5 ,
40
- efficiency_report_path = Path . cwd () / "efficiency_report_test" ,
41
- # seconds_between_status_checks=5,
42
- )
40
+ efficiency_report = True ,
41
+ init_seconds_before_status_checks = 5 ,
42
+ efficiency_report_path = self . REPORT_PATH ,
43
+ # seconds_between_status_checks=5,
44
+ )
43
45
44
46
def test_simple_workflow (self , tmp_path ):
45
47
# for an unkown reason, the efficiency report is not created
@@ -60,12 +62,9 @@ def test_simple_workflow(self, tmp_path):
60
62
report_found = False
61
63
62
64
report_path = None
63
- # we do not need to ensure the path exists, as it is created by the
64
- # executor
65
- expected_path = Path .cwd () / "efficiency_report_test"
66
65
67
66
# Check if the efficiency report file exists - based on the regex pattern
68
- for fname in os .listdir (expected_path ):
67
+ for fname in os .listdir (self . REPORT_PATH ):
69
68
if pattern .match (fname ):
70
69
report_found = True
71
70
report_path = os .path .join (expected_path , fname )
0 commit comments