Change in osmo-gsm-tester[master]: add option osmo-gsm-tester.py --suites-file my-suites-listing.conf

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Thu Dec 10 23:42:16 UTC 2020


neels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/21566 )

Change subject: add option osmo-gsm-tester.py --suites-file my-suites-listing.conf
......................................................................

add option osmo-gsm-tester.py --suites-file my-suites-listing.conf

For example, run with '-S handover-suites.conf' to just do the handover
tests.

Change-Id: If896ac84d02a275deda2f20a93c29312df128ebb
---
M src/osmo-gsm-tester.py
1 file changed, 11 insertions(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, approved



diff --git a/src/osmo-gsm-tester.py b/src/osmo-gsm-tester.py
index cfe55f6..15b1923 100755
--- a/src/osmo-gsm-tester.py
+++ b/src/osmo-gsm-tester.py
@@ -109,6 +109,11 @@
     parser.add_argument('-s', '--suite-scenario', dest='suite_scenario', action='append',
             help='''A suite-scenarios combination
 like suite:scenario+scenario''')
+    parser.add_argument('-S', '--suites-file', dest='suites_file', action='append',
+            default=[],
+            help='''Read suites to run from a yml listing,
+like default-suites.conf. The path is relative to
+--conf-path.''')
     parser.add_argument('-t', '--test', dest='test', action='append',
             help='''Run only tests matching this name.
 Any test name that contains the given string is run.
@@ -151,6 +156,12 @@
 
     combination_strs = list(args.suite_scenario or [])
 
+    for suites_file in args.suites_file:
+        suites_file = config.main_config_path_to_abspath(suites_file)
+        from_this_file = config.read(suites_file)
+        print(('Running suites from %r:\n  ' % suites_file) + ('\n  '.join(from_this_file)))
+        combination_strs.extend(from_this_file)
+
     if not combination_strs:
         combination_strs = config.read_config_file(config.CFG_DEFAULT_SUITES_CONF, if_missing_return=[])
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/21566
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: If896ac84d02a275deda2f20a93c29312df128ebb
Gerrit-Change-Number: 21566
Gerrit-PatchSet: 2
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201210/6923a1c9/attachment.htm>


More information about the gerrit-log mailing list