Commit e9e08823 authored by richardmaw-codethink's avatar richardmaw-codethink

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

parent e7633500
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment