[lxc-devel] [pylxd/master] Setup LXD before running integration tests

jpic on Github lxc-bot at linuxcontainers.org
Mon May 23 17:54:01 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 352 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160523/6b2bee67/attachment.bin>
-------------- next part --------------
From 46ef1fabb33ce45a756f082737b3ab2ef7b0db46 Mon Sep 17 00:00:00 2001
From: jpic <jamespic at gmail.com>
Date: Thu, 19 May 2016 13:40:58 +0200
Subject: [PATCH] Setup LXD before running integration tests

The busybox image is necessary for test_containers.
---
 tox.ini | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index c90612f..55394f8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -16,7 +16,11 @@ commands = nosetests pylxd
 commands = flake8
 
 [testenv:integration]
-commands = nosetests integration
+passenv = HOME
+whitelist_externals = lxc
+commands =
+    lxc image import https://dl.stgraber.org/lxd --alias busybox
+    nosetests integration
 
 [flake8]
 # E123, E125 skipped as they are invalid PEP-8.


More information about the lxc-devel mailing list