[PATCH] 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
Sat May 6 20:28:25 UTC 2017


Review at  https://gerrit.osmocom.org/2493

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(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/93/2493/1

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: newchange
Gerrit-Change-Id: I24f0a87a017f211f3a30fb98556a392f2a35be7b
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list