Skip brick_initiator test in virtual environments
/dev/disk/by-path does not exist in certain virtual environments. Skip the test. Fixes LP Bug #1196464 Change-Id: Ifc5bb061db59aaa6b7c089eda5e4eb1c9eff2dbf
This commit is contained in:
parent
066a6760f9
commit
dec8fb7792
@ -248,6 +248,8 @@ class ISCSIConnectorTestCase(ConnectorTestCase):
|
||||
}
|
||||
}
|
||||
|
||||
@test.testtools.skipUnless(os.path.exists('/dev/disk/by-path'),
|
||||
'Test requires /dev/disk/by-path')
|
||||
def test_connect_volume(self):
|
||||
self.stubs.Set(os.path, 'exists', lambda x: True)
|
||||
location = '10.0.2.15:3260'
|
||||
|
Loading…
x
Reference in New Issue
Block a user