diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-06-02 16:56:31 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-06-02 16:56:31 -0400 |
commit | 2bb228751a223f21296ff9166b42583c670359a5 (patch) | |
tree | 434918ba9bd4435047ebe9d6d5720c2b95dee269 /tests | |
parent | 5067b44d18c1338520acd7ea7363371853edde6f (diff) | |
download | vyos-cloud-init-2bb228751a223f21296ff9166b42583c670359a5.tar.gz vyos-cloud-init-2bb228751a223f21296ff9166b42583c670359a5.zip |
SmartOS test: do not require existance of /dev/ttyS1.
LP: #1316597
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_datasource/test_smartos.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/test_datasource/test_smartos.py b/tests/unittests/test_datasource/test_smartos.py index 45f1708a..f64aea07 100644 --- a/tests/unittests/test_datasource/test_smartos.py +++ b/tests/unittests/test_datasource/test_smartos.py @@ -171,6 +171,7 @@ class TestSmartOSDataSource(helpers.FilesystemMockingTestCase): self.apply_patches([(mod, 'get_serial', _get_serial)]) self.apply_patches([(mod, 'dmi_data', _dmi_data)]) self.apply_patches([(os, 'uname', _os_uname)]) + self.apply_patches([(mod, 'device_exists', lambda d: True)]) dsrc = mod.DataSourceSmartOS(sys_cfg, distro=None, paths=self.paths) return dsrc |