summaryrefslogtreecommitdiff
path: root/src/buildstream/testing
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-05-31 16:06:16 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-06 14:33:59 +0000
commit75fb7e0bf5516ffcc812361410989b022921e520 (patch)
tree468994ba7c89f0183ebf6f50b5d359130188c359 /src/buildstream/testing
parent1730ba5a2dd3f325cbe8aed29a39ef6d0b8c14ab (diff)
downloadbuildstream-75fb7e0bf5516ffcc812361410989b022921e520.tar.gz
test:utils/site: Consolidate Lzip environment variables in a single place
We have two different 'site' files that are redundant and both define some variables in BuildStream environment. Moving all the lzip related ones in a single place.
Diffstat (limited to 'src/buildstream/testing')
-rw-r--r--src/buildstream/testing/_utils/site.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildstream/testing/_utils/site.py b/src/buildstream/testing/_utils/site.py
index dbb4b9769..306f41c9f 100644
--- a/src/buildstream/testing/_utils/site.py
+++ b/src/buildstream/testing/_utils/site.py
@@ -49,6 +49,12 @@ except ProgramNotFoundError:
HAVE_BWRAP = False
HAVE_BWRAP_JSON_STATUS = False
+try:
+ utils.get_host_tool('lzip')
+ HAVE_LZIP = True
+except ProgramNotFoundError:
+ HAVE_LZIP = False
+
IS_LINUX = os.getenv('BST_FORCE_BACKEND', sys.platform).startswith('linux')
IS_WSL = (IS_LINUX and 'Microsoft' in platform.uname().release)
IS_WINDOWS = (os.name == 'nt')