diff options
author | Andrew Leeming <andrew.leeming@codethink.co.uk> | 2016-10-25 16:35:25 +0100 |
---|---|---|
committer | Andrew Leeming <andrew.leeming@codethink.co.uk> | 2016-10-25 16:35:25 +0100 |
commit | 0119c5e151e9502b384336d963127168fa5e51b4 (patch) | |
tree | b645bcb4a8f1c64633e48e57113226b8193dc060 /tests/test_all.py | |
parent | 45429a1ae04f044f5ff9baf1818a3a836b60bbb0 (diff) | |
download | sandboxlib-leeming/travis-testing.tar.gz |
Ignoring bubblewrap tests if bubblewrap is not availableleeming/travis-testing
Diffstat (limited to 'tests/test_all.py')
-rw-r--r-- | tests/test_all.py | 5 |
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 |