Skip to content

Commit

Permalink
tests: Make sure /etc/iscsi/initiatorname.iscsi exists for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Apr 9, 2024
1 parent fb68ccc commit 6641239
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/dbus-tests/test_30_iscsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ def test__manager_interface(self):
self.assertIn('interface name="%s.Manager.ISCSI.Initiator"' % self.iface_prefix, intro_data)

def test_initiator_name(self):
if not os.path.exists(INITIATOR_FILE):
self._set_initiator_name()

manager = self.get_object('/Manager')

initiator_dbus = manager.GetInitiatorName(self.no_options,
Expand Down

0 comments on commit 6641239

Please sign in to comment.