Updated openstack/openstack
Project: openstack/nova 12bf2688d0f5d7bacb1412289868a260285d2995 Tests: Add cleanup of 'instances' directory 'instances' directory was never cleaned up, which might have resulted in test_rescue() test trying to chown this directory while not having permissions to do such thing. Fix removes directories after tests finished. Tests use fake instance, created with _create_instance. Method _create_instance uses fixed uuid for instance object. Tests are executed through several workers, so they could start simultaneously. If one test created folder with the same uuid, the second one could delete it before the first test finished. It could lead the first test to fail. The solution is to use generated nstance uuid and delete particular uuid folder after test is completed. Instance folder won't be deleted, as it could be used by other tests. Change-Id: I985a414ac6dfc608e1a3ed68c580d0b08da45a91 Closes-Bug: 1664669
This commit is contained in:
committed by
Gerrit Code Review
parent
8dcbc7b059
commit
552b9e455f