From 5384724d937196e1e3f5c15fe443c0bff07896e6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 19 Aug 2019 23:39:38 +0300 Subject: Make testscripts to ignore user's default options files --- tests/common.testscript | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.1