osmo-gsm-tester[master]: Introduce PowerSupply interface and PowerSupplySispm

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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Tue Mar 13 20:24:59 UTC 2018


Patch Set 3:

(4 comments)

https://gerrit.osmocom.org/#/c/7167/3/src/osmo_gsm_tester/powersupply.py
File src/osmo_gsm_tester/powersupply.py:

Line 23: class PowerSupply(log.Origin, metaclass=ABCMeta):
> what's the rationale for the meta class to inherit from? It's enough to jus
It makes it easier adding new power switches and it makes it easily for me to find out quickly which APIs are used in which context.


Line 42:         'Turn on (onoff=True) or off (onof=False) the device'
> typo "onof"
Thanks, will fix.


https://gerrit.osmocom.org/#/c/7167/3/src/osmo_gsm_tester/powersupply_sispm.py
File src/osmo_gsm_tester/powersupply_sispm.py:

Line 61:     def powered(self):
> would prefer "is_powered()", or "power_get()" to match below
Agree


Line 66:         'Turn on (onoff=True) or off (onof=False) the device'
> "onof"
Thanks will fix.


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I981c260eca1a61657147e6d83b4226618088223c
Gerrit-PatchSet: 3
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-HasComments: Yes



More information about the gerrit-log mailing list