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/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18052 ) Change subject: check_dependencies: allow passing any module name to skip ...................................................................... check_dependencies: allow passing any module name to skip Change-Id: I53a384d54f32d766f70bd7e0bfbd9702939c8aa8 --- M check_dependencies.py 1 file changed, 11 insertions(+), 9 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/check_dependencies.py b/check_dependencies.py index 3efbaf9..daf46dc 100755 --- a/check_dependencies.py +++ b/check_dependencies.py @@ -12,20 +12,22 @@ import subprocess feature_module_map = { - 'powersupply_intellinet' : ['powersupply_intellinet'], - 'powersupply_sispm' : ['powersupply_sispm'], - 'rfemu_amarisoftctrl': ['rfemu_amarisoftctrl'], - 'rfemu_minicircuits': ['rfemu_minicircuits'], + '2g': ['bsc_osmo', 'bts_nanobts', 'bts_oc2g', 'bts_octphy', 'bts_osmo', 'bts_osmotrx', 'bts_osmovirtual', 'bts_sysmo', 'bts', 'bts', 'esme', 'ggsn_osmo', 'hlr_osmo', 'mgcpgw_osmo', 'mgw_osmo', 'ms_ofono', 'ms_driver', 'msc_osmo', 'nitb_osmo', 'osmo_ctrl', 'osmocon', 'pcap_recorder', 'pcu_oc2g', 'pcu_osmo', 'pcu_sysmo', 'pcu', 'sgsn_osmo', 'sms', 'smsc', 'stp_osmo'], + '4g': [], + 'srs': ['enb_srs', 'epc_srs', 'ms_srs'], + 'powersupply': ['powersupply', 'powersupply_intellinet', 'powersupply_sispm'], + 'rfemu': ['rfemu', 'rfemu_amarisoftctrl', 'rfemu_minicircuits'], } def skip_features_to_skip_modules(skip_features): skip_obj_modules = [] for skip_feature in skip_features: - if skip_feature not in feature_module_map: - raise Exception('feature %s doesn\'t exist!' % skip_feature) - for skip_module in feature_module_map[skip_feature]: - skip_obj_modules.append(skip_module) + if skip_feature in feature_module_map: + for skip_module in feature_module_map[skip_feature]: + skip_obj_modules.append(skip_module) + else: + skip_obj_modules.append(skip_feature) return skip_obj_modules def import_runtime_dependencies(): @@ -98,7 +100,7 @@ print("\t" + mname.ljust(20) + " [" + err.rstrip() +"]") parser = argparse.ArgumentParser(epilog=__doc__, formatter_class=argparse.RawTextHelpFormatter) -parser.add_argument('-s', '--skip-feature', dest='skip_features', choices=feature_module_map.keys(), action='append', +parser.add_argument('-s', '--skip-feature', dest='skip_features', action='append', help='''All osmo-gsm-tester features not used by the user running the script''') parser.add_argument('-p', '--distro-packages', dest='distro_packages', action='store_true', help='Print distro packages installing modules') -- To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18052 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: I53a384d54f32d766f70bd7e0bfbd9702939c8aa8 Gerrit-Change-Number: 18052 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin 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/20200505/271a9f28/attachment.htm>