regression-test: Improve lf_dataplane_test

Use DUT that earlier test logic created, allow specifying testbed
name on the cmd line.

Add exit code for dpt, but not sure it is correct since currently
it fails trying to copy the results locally since my GUI is on localhost
and LANforge system is elsewhere.  Added TODO to allow this usage.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2022-02-01 15:10:40 -08:00
committed by shivam
parent dad88f2c94
commit ec2dd1b4b3
2 changed files with 21 additions and 5 deletions

View File

@@ -326,6 +326,10 @@ def main():
help="--local_lf_report_dir <where to pull reports to> default '' put where dataplane script run from",
default="")
# TODO: Add debug and log-level support, and propagate as needed.
# TODO: Add ability to pull from a machine that is not running the
# GUI, for instance when GUI is running locally against a remote LANforge system.
args = parser.parse_args()
# use json config file
@@ -418,6 +422,10 @@ def main():
CV_Test.check_influx_kpi(args)
if CV_Test.passes():
CV_Test.exit_success()
else:
CV_Test.exit_fail()
if __name__ == "__main__":
main()