summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/bddeb.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-03-15 12:39:32 -0400
committerScott Moser <smoser@brickies.net>2018-03-15 12:39:32 -0400
commit2f5d4cebb243cf2f30c665f034668ba4b14178f9 (patch)
treead3d68b872b4dbdc759a005e5ded034b3d4de02c /tests/cloud_tests/bddeb.py
parentbef2f2c945fdee4a1141c3177b3e48b1537027e4 (diff)
downloadvyos-cloud-init-2f5d4cebb243cf2f30c665f034668ba4b14178f9.tar.gz
vyos-cloud-init-2f5d4cebb243cf2f30c665f034668ba4b14178f9.zip
tests: fix run_tree and bddeb
This was broken probably when we inserted the ssh keys into Platform.   tox -e citest tree_run and   tox -e citest bddeb would fail with KeyError in Platform.init due to lack of a data_dir. Also here are a few fixes found from attempting to make it work.
Diffstat (limited to 'tests/cloud_tests/bddeb.py')
-rw-r--r--tests/cloud_tests/bddeb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cloud_tests/bddeb.py b/tests/cloud_tests/bddeb.py
index a6d5069f..b9cfcfa6 100644
--- a/tests/cloud_tests/bddeb.py
+++ b/tests/cloud_tests/bddeb.py
@@ -16,7 +16,7 @@ pre_reqs = ['devscripts', 'equivs', 'git', 'tar']
def _out(cmd_res):
"""Get clean output from cmd result."""
- return cmd_res[0].strip()
+ return cmd_res[0].decode("utf-8").strip()
def build_deb(args, instance):