path: root/selftest
diff options
authorPau Espin Pedrol <pespin@sysmocom.de>2020-05-07 18:15:53 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-05-07 19:09:23 +0200
commit06c82aee5ce007a2c5ba12cd59d3db158c593ee8 (patch)
treee447d6660ac65864f4792a559956641e32f5f03e /selftest
parent18ff1e6e25ed3d1cbb60474149daa9848027f0d4 (diff)
Deprecate envvar OSMO_GSM_TESTER_CONF and remove other ones
Environment variable OSMO_GSM_TESTER_CONF is marked as deprecated and an error is logged each time it's used. Same feature is available through "-c" command line parameters, so having the envvar only makes things more complex for no good reason. It cannot yet be completely dropped since some environemnt still make use of it. Give some time to users to adapt their setups. Other environment variables setting some config apths can be dropped since they are not being really used in any setup. Change-Id: I7eb69f870d0dcb5906d45ae067d6bed1aabf5862
Diffstat (limited to 'selftest')
2 files changed, 2 insertions, 2 deletions
diff --git a/selftest/resource_test/resource_test.py b/selftest/resource_test/resource_test.py
index 39a7eb6..b74ba2a 100755
--- a/selftest/resource_test/resource_test.py
+++ b/selftest/resource_test/resource_test.py
@@ -13,7 +13,7 @@ from osmo_gsm_tester.core.schema import generate_schemas
workdir = util.get_tempdir()
# override config locations to make sure we use only the test conf
-config.ENV_CONF = os.path.join(os.path.dirname(sys.argv[0]), 'conf')
+config.override_conf = os.path.join(os.path.dirname(sys.argv[0]), 'conf')
log.get_process_id = lambda: '123-1490837279'
diff --git a/selftest/suite_test/suite_test.py b/selftest/suite_test/suite_test.py
index 99671c6..fc5f9df 100755
--- a/selftest/suite_test/suite_test.py
+++ b/selftest/suite_test/suite_test.py
@@ -7,7 +7,7 @@ from osmo_gsm_tester.core import log, config, util, report
from osmo_gsm_tester.core import suite
from osmo_gsm_tester.core.schema import generate_schemas, get_all_schema
-config.ENV_CONF = os.path.join(os.path.dirname(sys.argv[0]))
+config.override_conf = os.path.join(os.path.dirname(sys.argv[0]))
example_trial_dir = os.path.join('test_trial_tmp')