Closed seman closed 7 years ago
Looks like bundletester/tester.py#L125 is competing with cloudweatherreport/run.py#L256. Either BT should be changed to use a context manager or try / finally, or CWR should be changed to use atexit.
I talked about this one with @johnsca with a potential fix in cwr that uses atexit in a way that won't cause bundletester's atexits to fail:
http://paste.ubuntu.com/23590240/
But this breaks 4-5 unit tests, which would be annoying to fix. Cory thinks changing bundletester to a try/finally might be the easier approach, and is looking at it.
I have a fix for this ready in bundletester and am working to get it released as soon as I can.
cwr tries to remove a directory/file that doesn't exist or already removed:
https://pastebin.canonical.com/171062/