From 2899eddb07d0009474ae932d916e2ebc397339fb Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Sat, 6 Nov 2021 12:10:39 -0600 Subject: [PATCH] lf_check.py : verify the scenerio.py is called with the correct parameters Signed-off-by: Chuck SmileyRekiere --- py-scripts/tools/lf_check.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index bad307ec..54c7c167 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -596,8 +596,12 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url) except BaseException: self.logger.info("failed to change to {}".format(self.scripts_wd)) - # no spaces after FACTORY_DFLT - command = "./scenario.py --mgr {mgr} --load {db} --action {action}".format(mgr=self.lf_mgr_ip,db=custom_db,action="overwrite") + # WARNING do not simplify the following constructed command + #command = "./{} {} {} {}".format("scenario.py", "--mgr {mgr}"\ + # .format(mgr=self.lf_mgr_ip),"--load {db}".format(db=custom_db),"--action {action}".format(action="overwrite")) + command = "./{cmd} --mgr {mgr} --load {db} --action {action}".format(cmd="scenario.py",mgr=self.lf_mgr_ip,db=custom_db,action="overwrite") + print("command: {command}".format(command=command)) + process = subprocess.Popen((command).split(' '), shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) # wait for the process to terminate