osmith has uploaded this change for review.

View Change

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'")

To view, visit change 41439. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ib9e7083799d236ec30a378a08552be3d1a5a4aba
Gerrit-Change-Number: 41439
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>