aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/common.testscript13
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