LLNL / ATS

ATS - Automated Testing System - is an open-source, Python-based tool for automating the running of tests of an application across a broad range of high performance computers.
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

try/except sleep unlink out/err files in tests.py #57

Open dawson6 opened 3 years ago

dawson6 commented 3 years ago

Liu, Ben Another feature request. On Windows systems, the deletion of the out/err files can sometimes fail because the file has not been finalized yet. Previously we added a try/except on the unlink to get around this (this is at the end of tests.py).

Would it be possible to sleep(1) and try again, then only give the log message if that also failed?

dawson6 commented 1 year ago

This may fit in with a another proposal to use a standard set of decorators to do handle these cases.