py-json: cv_test_manager.py , cv_test_reports.py

py-scripts: lf_dataplane_test.py lf_wifi_capacity_test.py

local_path updated to local_lf_report_dir

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-06-29 10:33:52 -06:00
parent 335ef5859e
commit 9945e42f3c
4 changed files with 23 additions and 23 deletions

View File

@@ -121,7 +121,7 @@ class DataplaneTest(cv_test):
lf_user="lanforge",
lf_password="lanforge",
ssh_port=22,
local_path="",
local_lf_report_dir="",
instance_name="dpt_instance",
config_name="dpt_config",
upstream="1.1.eth2",
@@ -166,7 +166,7 @@ class DataplaneTest(cv_test):
self.graph_groups = graph_groups
self.report_dir = report_dir
self.ssh_port = ssh_port
self.local_path = local_path
self.local_lf_report_dir = local_lf_report_dir
self.test_rig = test_rig
def setup(self):
@@ -213,7 +213,7 @@ class DataplaneTest(cv_test):
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_path=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
@@ -305,7 +305,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_path", help="--local_path <where to pull reports to> default '' put where dataplane script run from",default="")
parser.add_argument("--local_lf_report_dir", help="--local_lf_report_dir <where to pull reports to> default '' put where dataplane script run from",default="")
args = parser.parse_args()
@@ -381,7 +381,7 @@ def main():
config_name = args.config_name,
upstream = args.upstream,
pull_report = args.pull_report,
local_path = args.local_path,
local_lf_report_dir = args.local_lf_report_dir,
load_old_cfg = args.load_old_cfg,
download_speed = args.download_speed,
upload_speed = args.upload_speed,

View File

@@ -355,7 +355,7 @@ class WiFiCapacityTest(cv_test):
report_dir="",
graph_groups=None,
test_rig="",
local_path=""
local_lf_report_dir=""
):
super().__init__(lfclient_host=lfclient_host, lfclient_port=lf_port)
@@ -393,7 +393,7 @@ class WiFiCapacityTest(cv_test):
self.report_dir = report_dir
self.graph_groups = graph_groups
self.test_rig = test_rig
self.local_path = local_path
self.local_lf_report_dir = local_lf_report_dir
def setup(self):
if self.create_stations and self.stations != "":
@@ -471,7 +471,7 @@ class WiFiCapacityTest(cv_test):
self.create_and_run_test(self.load_old_cfg, self.test_name, self.instance_name,
self.config_name, self.sets,
self.pull_report, self.lfclient_host, self.lf_user, self.lf_password,
cv_cmds, graph_groups_file=self.graph_groups, local_path=self.local_path)
cv_cmds, graph_groups_file=self.graph_groups, local_lf_report_dir=self.local_lf_report_dir)
self.rm_text_blob(self.config_name, blob_test) # To delete old config with same name
@@ -525,7 +525,7 @@ def main():
parser.add_argument("--report_dir", default="")
parser.add_argument("--scenario", default="")
parser.add_argument("--graph_groups", help="File to save graph groups to", default=None)
parser.add_argument("--local_path", help="--local_path <where to pull reports to> default '' put where dataplane script run from",default="")
parser.add_argument("--local_lf_report_dir", help="--local_lf_report_dir <where to pull reports to> default '' put where dataplane script run from",default="")
args = parser.parse_args()
@@ -560,7 +560,7 @@ def main():
sets=args.set,
graph_groups=args.graph_groups,
test_rig=args.test_rig,
local_path=args.local_path
local_lf_report_dir=args.local_lf_report_dir
)
WFC_Test.setup()
WFC_Test.run()