diff options
author | Scott Moser <smoser@ubuntu.com> | 2017-09-25 14:29:13 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2017-09-25 14:29:13 -0400 |
commit | ad099a53d120e88719a5ad50f29d22e9f7a52bc7 (patch) | |
tree | ca7b3f07b127d15713e5db2b5d1a70858668dc29 /tests/unittests/test_datasource/test_altcloud.py | |
parent | da6562e21d0b17a0957adc0c5a2c9da076e0d219 (diff) | |
download | vyos-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/unittests/test_datasource/test_altcloud.py')
-rw-r--r-- | tests/unittests/test_datasource/test_altcloud.py | 4 |
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): |