fix machine name in DEBUG logging 59/73859/1
authorLuc Provoost <luc.provoost@gmail.com>
Thu, 2 Feb 2023 16:34:11 +0000 (17:34 +0100)
committerLuc Provoost <luc.provoost@gmail.com>
Thu, 2 Feb 2023 16:34:11 +0000 (17:34 +0100)
We are logging the content of all test parameters in DEBUG mode. Since
one of the test parameters (machine name) can still change to make
sure we have unique machines names, the logging is done later, after the
machines names are guaranteed to be unique.

Signed-off-by: Luc Provoost <luc.provoost@gmail.com>
Change-Id: I06cbdbcfd9044798ebad03ead0eca567e7f24a9d

VNFs/DPPD-PROX/helper-scripts/rapid/runrapid.py

index f5b722c..7ec270a 100755 (executable)
@@ -59,7 +59,6 @@ class RapidTestManager(object):
 
     def run_tests(self, test_params):
         test_params = RapidConfigParser.parse_config(test_params)
-        RapidLog.debug(test_params)
         monitor_gen = monitor_sut = False
         background_machines = []
         sut_machine = gen_machine = None
@@ -103,6 +102,7 @@ class RapidTestManager(object):
                         if machine_params['prox_socket']:
                             sut_machine = machine
             self.machines.append(machine)
+        RapidLog.debug(test_params)
         try:
             prox_executor = concurrent.futures.ThreadPoolExecutor(max_workers=len(self.machines))
             self.future_to_prox = {prox_executor.submit(machine.start_prox): machine for machine in self.machines}