summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2017-09-25 14:29:13 -0400
committerScott Moser <smoser@ubuntu.com>2017-09-25 14:29:13 -0400
commitad099a53d120e88719a5ad50f29d22e9f7a52bc7 (patch)
treeca7b3f07b127d15713e5db2b5d1a70858668dc29 /tests
parentda6562e21d0b17a0957adc0c5a2c9da076e0d219 (diff)
downloadvyos-cloud-init-ad099a53d120e88719a5ad50f29d22e9f7a52bc7.tar.gz
vyos-cloud-init-ad099a53d120e88719a5ad50f29d22e9f7a52bc7.zip
AltCloud: Trust PATH for udevadm and modprobe.
Previously we had hard coded paths in /sbin for the udevadm and modprobe programs invoked by AltCloud. Its more flexible to expect the PATH to be set correctly. Debian: #852564
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_datasource/test_altcloud.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_datasource/test_altcloud.py b/tests/unittests/test_datasource/test_altcloud.py
index 3b274d90..a4dfb540 100644
--- a/tests/unittests/test_datasource/test_altcloud.py
+++ b/tests/unittests/test_datasource/test_altcloud.py
@@ -280,8 +280,8 @@ class TestUserDataRhevm(TestCase):
pass
dsac.CLOUD_INFO_FILE = '/etc/sysconfig/cloud-info'
- dsac.CMD_PROBE_FLOPPY = ['/sbin/modprobe', 'floppy']
- dsac.CMD_UDEVADM_SETTLE = ['/sbin/udevadm', 'settle',
+ dsac.CMD_PROBE_FLOPPY = ['modprobe', 'floppy']
+ dsac.CMD_UDEVADM_SETTLE = ['udevadm', 'settle',
'--quiet', '--timeout=5']
def test_mount_cb_fails(self):