]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Set iet_conf to nonexistent file in unit test
authorJohn Griffith <john.griffith@solidfire.com>
Sat, 20 Dec 2014 00:45:16 +0000 (17:45 -0700)
committerJohn Griffith <john.griffith8@gmail.com>
Sun, 21 Dec 2014 17:55:34 +0000 (10:55 -0700)
commit80bc025da4ee2b90f7ac9add5f5769c7cdd52bb2
tree2ce9d59fc0e35e703e32900c1aa137ed82d9837b
parenta20330d64fc24d1421660b49d196609cd6127979
Set iet_conf to nonexistent file in unit test

The Iet test in test_iscsi isn't setup to deal with
an actual iet.conf file.  The result is that if you happen
to be on a system that has an iet.conf file the test will fail
when it gets to the os.stat check.

This patch just uses a tempdir with a bogus file name that is
set as the iet_conf option to make sure the test never runs into
a situation where the file is actually there.

Change-Id: I5c8653a17250063660ca8aa369c537cc340bc4e9
Closes-Bug: #1400780
cinder/tests/test_iscsi.py