def clone_test(self): """Creates a testing clone. This function is supposed to be overridden by tutorials requiring more cloning work than `FreeFOAM.util.clone()` and `modify_for_test()` provide. """ if _op.isdir(self.test_dir): _fu.remove_case(self.test_dir) _fu.clone_case(self.case_dir, self.test_dir) self.modify_for_test()
def clean(self): """Cleans the case. This function is supposed to be overridden by tutorials requiring more cleaning up than `FreeFOAM.util.clean_case` provides. Note that this implementation also removes `test_dir` if it exist and is not equal to the `case_dir`. """ _fu.clean_case(self.case_dir) if self.test_dir != self.case_dir and _op.isdir(self.test_dir): _fu.remove_case(self.test_dir)
def clone_test(self): """Refer to `CaseRunner.clean`.""" if _op.isdir(self.test_dir): _fu.remove_case(self.test_dir) self.clone_from_parent(self.test_dir) self.modify_for_test()
def clean(self): """Removes the cloned case and, if it exists, the test-case.""" _fu.remove_case(self.case_dir) if _op.isdir(self.test_dir): _fu.remove_case(self.test_dir)