diff --git a/cinder/tests/test_brick_initiator.py b/cinder/tests/test_brick_initiator.py index 0acbce3c82b..0d0f6b0d7ad 100644 --- a/cinder/tests/test_brick_initiator.py +++ b/cinder/tests/test_brick_initiator.py @@ -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'