diff options
author | Kiril Vladimiroff <kiril.vladimiroff@cloudsigma.com> | 2014-05-30 14:50:57 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-05-30 14:50:57 -0400 |
commit | 5067b44d18c1338520acd7ea7363371853edde6f (patch) | |
tree | df02ac7428c2fb813e3c2eb8c6535d8ea6fd0a1b /tests/unittests | |
parent | e0650257e1ef728304a0c7230c0a2d2710a8ac5f (diff) | |
parent | 2d36a7ce4a0ccec3bd2881dd99d6d5012a85fe3c (diff) | |
download | vyos-cloud-init-5067b44d18c1338520acd7ea7363371853edde6f.tar.gz vyos-cloud-init-5067b44d18c1338520acd7ea7363371853edde6f.zip |
CloudSigma: only poll on serial device after dmidecode check.
On systems with a ttyS1 and nothing attached, the read attempts
that the cloud sigma datasource would do would block.
Also, Add timeouts for reading/writting from/to the serial console
LP: #1316475
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_datasource/test_cloudsigma.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/test_datasource/test_cloudsigma.py b/tests/unittests/test_datasource/test_cloudsigma.py index a1342a86..f92e07b7 100644 --- a/tests/unittests/test_datasource/test_cloudsigma.py +++ b/tests/unittests/test_datasource/test_cloudsigma.py @@ -39,6 +39,7 @@ class CepkoMock(Cepko): class DataSourceCloudSigmaTest(TestCase): def setUp(self): self.datasource = DataSourceCloudSigma.DataSourceCloudSigma("", "", "") + self.datasource.is_running_in_cloudsigma = lambda: True self.datasource.cepko = CepkoMock(SERVER_CONTEXT) self.datasource.get_data() |