osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41421?usp=email )


Change subject: testenv: stop daemons in reverse order
......................................................................

testenv: stop daemons in reverse order

The PyHSS daemons throw a lot of errors when the redis server is stopped
before the PyHSS daemons are stopped. Fix this by stopping the daemons
in the reverse order they were started.

Example:

  start:
        1) redis
        2) pyhss_hss
        3) pyhss_diameter
        4) pyhss_api

  stop:
        1) pyhss_api
        2) pyhss_diameter
        3) pyhss_hss
        4) redis

Change-Id: Ia4fa25998d81a9a3a27c5f3d341b9a02e5536e17
---
M _testenv/testenv/daemons.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/21/41421/1

diff --git a/_testenv/testenv/daemons.py b/_testenv/testenv/daemons.py
index f57b4b4..2abe8c8 100644
--- a/_testenv/testenv/daemons.py
+++ b/_testenv/testenv/daemons.py
@@ -140,7 +140,7 @@

         run_shell_on_stop = False

-    for daemon in daemons:
+    for daemon in reversed(daemons):
         pid = daemons[daemon].pid
         logging.info(f"Stopping {daemon} ({pid})")
         kill(pid)

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41421?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia4fa25998d81a9a3a27c5f3d341b9a02e5536e17
Gerrit-Change-Number: 41421
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to