summaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorKiril Vladimiroff <kiril.vladimiroff@cloudsigma.com>2014-05-30 14:50:57 -0400
committerScott Moser <smoser@ubuntu.com>2014-05-30 14:50:57 -0400
commit5067b44d18c1338520acd7ea7363371853edde6f (patch)
treedf02ac7428c2fb813e3c2eb8c6535d8ea6fd0a1b /tests/unittests
parente0650257e1ef728304a0c7230c0a2d2710a8ac5f (diff)
parent2d36a7ce4a0ccec3bd2881dd99d6d5012a85fe3c (diff)
downloadvyos-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.py1
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()