diff options
author | Jürg Billeter <j@bitron.ch> | 2020-04-28 12:00:44 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-04-28 19:18:57 +0200 |
commit | eada71cb4d6bfce85d9d1481c9f25f8b777a9bc6 (patch) | |
tree | 4c63f15381643cc1d78e6634705d1e86ec24c3d8 | |
parent | 051e04af4900ed7215809739151537e112127426 (diff) | |
download | buildstream-eada71cb4d6bfce85d9d1481c9f25f8b777a9bc6.tar.gz |
testing/_utils/site.py: Check that buildbox-run has all dependencies
-rw-r--r-- | src/buildstream/testing/_utils/site.py | 3 |
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 |