osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41439?usp=email )
Change subject: testenv: allow -c osmo-hlr -> testenv_osmo_hlr.cfg ......................................................................
testenv: allow -c osmo-hlr -> testenv_osmo_hlr.cfg
For the HLR testsuite, we now have testenv_pyhss.cfg and testenv_osmo_hlr.cfg. The parameters to select the config are "-c pyhss" and "-c osmo_hlr", derived from these filenames. However "-c osmo-hlr" is more intuitive and I keep writing that. Replace - with _ automatically to make this more intuitive.
Change-Id: Ib9e7083799d236ec30a378a08552be3d1a5a4aba --- M _testenv/testenv/testenv_cfg.py 1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/39/41439/1
diff --git a/_testenv/testenv/testenv_cfg.py b/_testenv/testenv/testenv_cfg.py index 9edc102..367d842 100644 --- a/_testenv/testenv/testenv_cfg.py +++ b/_testenv/testenv/testenv_cfg.py @@ -411,6 +411,9 @@
# Select configs based on --config argument(s) for config_arg in testenv.args.config: + # Allow using the more intuitive "-c osmo-hlr" for testenv_osmo_hlr.cfg + config_arg = config_arg.replace("-", "_") + if config_arg == "all": if len(testenv.args.config) != 1: raise testenv.NoTraceException("Can't use multiple --config arguments if one of them is 'all'")