summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Leeming <andrew.leeming@codethink.co.uk>2016-10-25 16:35:25 +0100
committerAndrew Leeming <andrew.leeming@codethink.co.uk>2016-10-25 16:35:25 +0100
commit0119c5e151e9502b384336d963127168fa5e51b4 (patch)
treeb645bcb4a8f1c64633e48e57113226b8193dc060
parent45429a1ae04f044f5ff9baf1818a3a836b60bbb0 (diff)
downloadsandboxlib-leeming/travis-testing.tar.gz
Ignoring bubblewrap tests if bubblewrap is not availableleeming/travis-testing
-rw-r--r--tests/test_all.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_all.py b/tests/test_all.py
index 98f9e6a..8948c41 100644
--- a/tests/test_all.py
+++ b/tests/test_all.py
@@ -32,6 +32,11 @@ def sandboxlib_executor(request):
if request.param == 'chroot' and os.getuid() != 0:
pytest.skip('chroot backend can only be used by root users')
+ elif request.param == 'bubblewrap':
+ try:
+ executor.get_program()
+ except sandboxlib.ProgramNotFound:
+ pytest.skip('bubblewrap not found: not running the tests')
return executor