[MERGED] osmo-gsm-tester[master]: fix osmo-gsm-tester.py -t option

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 Hofmeyr gerrit-no-reply at lists.osmocom.org
Sun May 7 01:13:23 UTC 2017


Neels Hofmeyr has submitted this change and it was merged.

Change subject: fix osmo-gsm-tester.py -t option
......................................................................


fix osmo-gsm-tester.py -t option

Option to select test names had code rot. Use loaded suite definitions
properly.

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

Approvals:
  Neels Hofmeyr: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-gsm-tester.py b/src/osmo-gsm-tester.py
index 17b16b7..34e5fbd 100755
--- a/src/osmo-gsm-tester.py
+++ b/src/osmo-gsm-tester.py
@@ -130,8 +130,8 @@
     test_names = []
     for test_name in (args.test or []):
         found = False
-        for suite_run in suite_runs:
-            for test in suite_run.definition.tests:
+        for suite_scenario_str, suite_def, scenarios in suite_scenarios:
+            for test in suite_def.tests:
                 if test_name in test.name():
                     found = True
                     test_names.append(test.name())

-- 
To view, visit https://gerrit.osmocom.org/2493
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I24f0a87a017f211f3a30fb98556a392f2a35be7b
Gerrit-PatchSet: 2
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list