diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-19 23:39:38 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-22 12:55:29 +0300 |
commit | 5384724d937196e1e3f5c15fe443c0bff07896e6 (patch) | |
tree | 1657553f18585678321cb4a10a8c51f54a57f626 /tests | |
parent | fce2bf8086573a13eb39e1e8c65e615012486a58 (diff) |
Make testscripts to ignore user's default options files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common.testscript | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/common.testscript b/tests/common.testscript index 6a7bad2..802b2e5 100644 --- a/tests/common.testscript +++ b/tests/common.testscript @@ -9,7 +9,18 @@ # to one that may or may not be found via PATH). # build = $recall($build.path) -test.options += --build $build + +# Disable loading the user's default options files (that may affect the test +# commands execution) for bpkg and build2. +# +options_guard = $~/.build2 ++mkdir $options_guard + ++echo '--no-default-options' >=$options_guard/b.options ++echo '--no-default-options' >=$options_guard/bpkg.options + +test.options += --default-options $options_guard \ +--build $build --build-option "--default-options=$options_guard" # Helper commands that can be used by tests to prepare the testing environment # or validate an outcome of the command being tested. They are likely to get |