summaryrefslogtreecommitdiff
path: root/src/buildstream
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-05 14:28:42 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-06 14:33:59 +0000
commit8c19f8d8270c9095e30a0ef9b34332fb0f4b5868 (patch)
tree034512af76fa83419de3d1c3eaa6498c489b01c0 /src/buildstream
parent3b56da44bdafeff1237391ad9edbb73010bcd5ee (diff)
downloadbuildstream-8c19f8d8270c9095e30a0ef9b34332fb0f4b5868.tar.gz
test:utils/site: Consolidate MACHINE_ARCH variable in a single place
We have two different 'site' files that are redundant and both define some variables in BuildStream environment. Moving the MACHINE_ARCH to a single place.
Diffstat (limited to 'src/buildstream')
-rw-r--r--src/buildstream/testing/_utils/site.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/testing/_utils/site.py b/src/buildstream/testing/_utils/site.py
index 9d18d89bd..9e66b804e 100644
--- a/src/buildstream/testing/_utils/site.py
+++ b/src/buildstream/testing/_utils/site.py
@@ -7,6 +7,7 @@ import sys
import platform
from buildstream import _site, utils, ProgramNotFoundError
+from buildstream._platform import Platform
try:
@@ -73,3 +74,5 @@ elif IS_LINUX and HAVE_BWRAP:
HAVE_SANDBOX = True
else:
HAVE_SANDBOX = False
+
+MACHINE_ARCH = Platform.get_host_arch()