Beispiel #1
0
 def cleanup(self):
     r"""Cleanup files created during the test."""
     if (self.yaml is not None) and (self.output_files is not None):
         timer_class = tools.YggClass()
         for fout in self.output_files:
             if os.path.isfile(fout):
                 tools.remove_path(fout, timer_class=timer_class, timeout=5)
Beispiel #2
0
 def example_cleanup_w():
     if (yaml is not None) and (output_files is not None):
         for fout in output_files:
             if os.path.isfile(fout):
                 tools.remove_path(fout, timeout=5)
     for f in glob.glob(core_dump):
         os.remove(f)