summaryrefslogtreecommitdiff
path: root/tests/sandboxes
diff options
context:
space:
mode:
authorWilliam Salmon <will.salmon@codethink.co.uk>2019-06-05 14:22:34 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-12 06:57:52 +0000
commit33272aa7764c03f7d0b3a7b36f08636f883c3e69 (patch)
tree675034c2720fdf2fd80a3d6da29b77fab15e414e /tests/sandboxes
parent24426ebe31fc2ad297b352a1d332c7cf158ef5c2 (diff)
downloadbuildstream-33272aa7764c03f7d0b3a7b36f08636f883c3e69.tar.gz
Refactor of Platform and Sandbox
Diffstat (limited to 'tests/sandboxes')
-rw-r--r--tests/sandboxes/missing_dependencies.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/sandboxes/missing_dependencies.py b/tests/sandboxes/missing_dependencies.py
index ee346010e..79153f769 100644
--- a/tests/sandboxes/missing_dependencies.py
+++ b/tests/sandboxes/missing_dependencies.py
@@ -43,7 +43,10 @@ def test_missing_brwap_has_nice_error_message(cli, datafiles):
# Build without access to host tools, this should fail with a nice error
result = cli.run(
- project=project, args=['build', 'element.bst'], env={'PATH': ''})
+ project=project,
+ args=['build', 'element.bst'],
+ env={'PATH': '', 'BST_FORCE_SANDBOX': None}
+ )
result.assert_task_error(ErrorDomain.SANDBOX, 'unavailable-local-sandbox')
assert "not found" in result.stderr
@@ -85,6 +88,7 @@ def test_old_brwap_has_nice_error_message(cli, datafiles, tmp_path):
result = cli.run(
project=project,
args=['--debug', '--verbose', 'build', 'element3.bst'],
- env={'PATH': str(tmp_path.joinpath('bin'))})
+ env={'PATH': str(tmp_path.joinpath('bin')),
+ 'BST_FORCE_SANDBOX': None})
result.assert_task_error(ErrorDomain.SANDBOX, 'unavailable-local-sandbox')
assert "too old" in result.stderr