Mercurial > hg
changeset 26087:06cd67a5044f
run-tests: ignore failed removal of nonexistent installerrs
When running tests with -j100 or so on a large machine, I see this
os.remove call failing semi-regularly. Since it's not really a problem
when the file is already gone, just suppress the error in that case.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 25 Aug 2015 00:40:42 -0400 |
parents | 3670efdc7088 |
children | 3375ae1e7d0b |
files | tests/run-tests.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Tue Aug 25 13:38:20 2015 -0500 +++ b/tests/run-tests.py Tue Aug 25 00:40:42 2015 -0400 @@ -2078,7 +2078,11 @@ vlog("# Running", cmd) if os.system(cmd) == 0: if not self.options.verbose: - os.remove(installerrs) + try: + os.remove(installerrs) + except OSError as e: + if e.errno != errno.ENOENT: + raise else: f = open(installerrs, 'rb') for line in f: