summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-04-28 12:00:44 +0200
committerJürg Billeter <j@bitron.ch>2020-04-28 12:03:26 +0200
commit7037a341e8bbfde97452244cd1103f256bbe16db (patch)
tree7da6c1d4f290ede51ccd5cd3754a8588ecbf6a15
parent39ef0fca30acdd4a653cc1751a816a27fe899617 (diff)
downloadbuildstream-7037a341e8bbfde97452244cd1103f256bbe16db.tar.gz
testing/_utils/site.py: Check that buildbox-run has all dependencies
-rw-r--r--src/buildstream/testing/_utils/site.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildstream/testing/_utils/site.py b/src/buildstream/testing/_utils/site.py
index 0dfbce222..37c807d65 100644
--- a/src/buildstream/testing/_utils/site.py
+++ b/src/buildstream/testing/_utils/site.py
@@ -81,6 +81,7 @@ BUILDBOX_RUN = None
if HAVE_SANDBOX == "buildbox-run":
try:
path = utils.get_host_tool("buildbox-run")
+ subprocess.run([path, "--capabilities"], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
BUILDBOX_RUN = os.path.basename(os.readlink(path))
- except (ProgramNotFoundError, OSError):
+ except (ProgramNotFoundError, OSError, subprocess.CalledProcessError):
pass