mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-12-24 22:37:03 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user