From cf9f8da0ce90db9f9260c6c9c08f401b98a30286 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Wed, 29 Sep 2021 14:32:04 -0700 Subject: [PATCH] rvr: Add local_lf_report_dir argument. Untested as of now. Signed-off-by: Ben Greear --- py-scripts/lf_rvr_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/py-scripts/lf_rvr_test.py b/py-scripts/lf_rvr_test.py index a103afa5..9b53ab2c 100755 --- a/py-scripts/lf_rvr_test.py +++ b/py-scripts/lf_rvr_test.py @@ -124,7 +124,7 @@ class RvrTest(cvtest): lf_host="localhost", lf_port=8080, ssh_port=22, - local_path="", + local_lf_report_dir="", graph_groups=None, lf_user="lanforge", lf_password="lanforge", @@ -167,8 +167,8 @@ class RvrTest(cvtest): self.raw_lines_file = raw_lines_file self.sets = sets self.ssh_port = ssh_port - self.local_path = local_path self.graph_groups = graph_groups + self.local_lf_report_dir = local_lf_report_dir def setup(self): # Nothing to do at this time. @@ -212,7 +212,7 @@ class RvrTest(cvtest): self.create_and_run_test(self.load_old_cfg, self.test_name, self.instance_name, self.config_name, self.sets, self.pull_report, self.lf_host, self.lf_user, self.lf_password, - cv_cmds, ssh_port=self.ssh_port, local_lf_report_dir=self.local_path, + cv_cmds, ssh_port=self.ssh_port, local_lf_report_dir=self.local_lf_report_dir, graph_groups_file=self.graph_groups) self.rm_text_blob(self.config_name, blob_test) # To delete old config with same name @@ -262,6 +262,7 @@ def main(): help="Specify duration of each traffic run") parser.add_argument("--graph_groups", help="File to save graph_groups to", default=None) parser.add_argument("--report_dir", default="") + parser.add_argument("--local_lf_report_dir", help="--local_lf_report_dir default '' put where dataplane script run from",default="") args = parser.parse_args()