Reviewed: https://review.openstack.org/44973 Committed: http://github.com/openstack/cinder/commit/f0ab7be7c304dad9d925dbc6a82c67ec5bbfc1da Submitter: Jenkins Branch: master
commit f0ab7be7c304dad9d925dbc6a82c67ec5bbfc1da Author: John Griffith <email address hidden> Date: Tue Sep 3 22:33:24 2013 +0000
Use tempfile and cleanup in windows unit test
The unit test test_windows was setting and creating a directory c://iSCSIVirtualDisks in the root path and even worse wasn't deleting it on cleanup.
This patch converts that to use tempfile and also adds an shutil.rmtree to the teardown method to clean up all the junk it creates.
Fixes bug: 1219950
Change-Id: Ibd071c9c3ae9a02f26c85a09e8bc6619d8c73a37
Reviewed: https:/ /review. openstack. org/44973 github. com/openstack/ cinder/ commit/ f0ab7be7c304dad 9d925dbc6a82c67 ec5bbfc1da
Committed: http://
Submitter: Jenkins
Branch: master
commit f0ab7be7c304dad 9d925dbc6a82c67 ec5bbfc1da
Author: John Griffith <email address hidden>
Date: Tue Sep 3 22:33:24 2013 +0000
Use tempfile and cleanup in windows unit test
The unit test test_windows was setting and creating lDisks in the root path
a directory c://iSCSIVirtua
and even worse wasn't deleting it on cleanup.
This patch converts that to use tempfile and also
adds an shutil.rmtree to the teardown method to clean
up all the junk it creates.
Fixes bug: 1219950
Change-Id: Ibd071c9c3ae9a0 2f26c85a09e8bc6 619d8c73a37