Fixed post-exec in validation

This commit is contained in:
2026-03-01 20:10:23 +01:00
parent a05a77842f
commit 986cdb9ed9
2 changed files with 6 additions and 8 deletions

View File

@@ -320,19 +320,18 @@ class TestSet:
def set_post_exec(self):
post_exec = self._testdict.get("post_execution", None)
if post_exec is None:
if self.post_exec_file is not None:
self.post_exec_file = None
self.post_exec_file = None
return
postexec_file = post_exec["file_name"]
if not os.path.isfile(os.path.join(self._testDir, postexec_file)):
if not os.path.isfile(os.path.join(tm.gd("test_directory"), postexec_file)):
raise ETUMSyntaxError(f"Post execution file '{postexec_file}' not found")
self.post_exec_file = postexec_file
def run_post_exec(self):
tm.print_debug("Is there a post execution file ?")
post_exec_file = self.post_exec_file
test_dir = tm.gd("test_directory")