Ubuntu Pastebin

Paste from smoser at Fri, 10 Mar 2017 18:11:51 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
commit df88d29ddf66057dd6912816cd8be2dc1c7fa443 (HEAD -> master)
Author: Scott Moser <smoser@brickies.net>
Date:   Fri Mar 10 13:08:09 2017 -0500

    tox: add a citest environment
    
    Because the tests/cloud_tests require specific version of pylxd
    adding a tox environment makes that much easier.
    Additionally it makes calling it at least a bit simpler.
    
    Example:
      tox -e citest -- run -v -n zesty --deb=cloud-init_all.deb

diff --git a/tox.ini b/tox.ini
index ca5d8b8..f016f20 100644
--- a/tox.ini
+++ b/tox.ini
@@ -87,3 +87,10 @@ deps = pycodestyle
 [testenv:tip-pyflakes]
 commands = {envpython} -m pyflakes {posargs:cloudinit/ tests/ tools/}
 deps = pyflakes
+
+[testenv:citest]
+basepython = python3
+commands = {envpython} -m tests.cloud_tests {posargs}
+passenv = HOME
+deps =
+    pylxd==2.1.3
Download as text