Skip to content
Snippets Groups Projects
Commit 1acc2c1d authored by richardmaw-codethink's avatar richardmaw-codethink
Browse files

tests/testutils/site.py: Check for bwrap supporting --json-status-fd

parent c612b851
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
import os
import sys
from buildstream import utils, ProgramNotFoundError
from buildstream import _site, utils, ProgramNotFoundError
try:
utils.get_host_tool('bzr')
......@@ -33,8 +33,10 @@ except (ImportError, ValueError):
try:
utils.get_host_tool('bwrap')
HAVE_BWRAP = True
HAVE_BWRAP_JSON_STATUS = _site.get_bwrap_version() >= (0, 3, 2)
except ProgramNotFoundError:
HAVE_BWRAP = False
HAVE_BWRAP_JSON_STATUS = False
try:
utils.get_host_tool('lzip')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment