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.orgPau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/11628 ) Change subject: ansible: gsm-tester: Support power cycling multiple quad modems ...................................................................... ansible: gsm-tester: Support power cycling multiple quad modems uhubctl doesn't support acting on several hubs from same vendor at once. Change-Id: I01e698c96240130ed6f632f82383f6020d2a3b81 --- M ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh 1 file changed, 8 insertions(+), 2 deletions(-) Approvals: Harald Welte: Looks good to me, approved Neels Hofmeyr: Looks good to me, approved Pau Espin Pedrol: Verified diff --git a/ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh b/ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh index 626a04e..f461d81 100755 --- a/ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh +++ b/ansible/roles/gsm-tester/templates/quad_modem_power_cycle.sh @@ -1,9 +1,15 @@ #!/bin/sh set -ex -uhubctl -p 123456 -a 0 -n 1d50:4002 + +locations="$(uhubctl -n 1d50:4002 | grep "Current status for hub" | awk '{print $5}')" +for l in $locations; do + uhubctl -p 123456 -a 0 -n 1d50:4002 -l $l +done # give a lot of time to discharge capacitors on the board sleep 20 -uhubctl -p 123456 -a 1 -n 1d50:4002 +for l in $locations; do + uhubctl -p 123456 -a 1 -n 1d50:4002 -l $l +done attempts=30 while [ "x$(uhubctl | grep -e 05c6 -e 1199 -c)" != "x{{ gsm_modems }}" ]; do attempts=$(($attempts - 1)) -- To view, visit https://gerrit.osmocom.org/11628 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I01e698c96240130ed6f632f82383f6020d2a3b81 Gerrit-Change-Number: 11628 Gerrit-PatchSet: 2 Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de> Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181107/287a2420/attachment.htm>