test rig command and other improvements to automation

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-06-24 16:53:22 -07:00
parent 385a3d2c21
commit d1e4351b70
4 changed files with 85 additions and 11 deletions

View File

@@ -138,7 +138,8 @@ class DataplaneTest(cv_test):
raw_lines_file="",
sets=[],
graph_groups=None,
report_dir=""
report_dir="",
test_rig=""
):
super().__init__(lfclient_host=lf_host, lfclient_port=lf_port)
@@ -166,6 +167,7 @@ class DataplaneTest(cv_test):
self.report_dir = report_dir
self.ssh_port = ssh_port
self.local_path = local_path
self.test_rig = test_rig
def setup(self):
# Nothing to do at this time.
@@ -200,6 +202,8 @@ class DataplaneTest(cv_test):
cfg_options.append("duration: " + self.duration)
if self.dut != "":
cfg_options.append("selected_dut: " + self.dut)
if self.test_rig != "":
cfg_options.append("test_rig: " + self.test_rig)
# We deleted the scenario earlier, now re-build new one line at a time.
@@ -386,7 +390,8 @@ def main():
raw_lines = args.raw_line,
raw_lines_file = args.raw_lines_file,
sets = args.set,
graph_groups = args.graph_groups
graph_groups = args.graph_groups,
test_rig=args.test_rig
)
CV_Test.setup()
CV_Test.run()