cicd: Make sta_connect print results to stdout when called as independent script.

This commit is contained in:
Ben Greear
2020-06-10 19:25:04 -07:00
parent ab74fc2aa1
commit f29cc0bd54
2 changed files with 12 additions and 0 deletions

View File

@@ -499,8 +499,17 @@ Example:
staConnect.dut_ssid = args.dut_ssid
staConnect.run()
run_results = staConnect.get_result_list()
is_passing = staConnect.passes()
if is_passing == False:
print("FAIL: Some tests failed")
else:
print("PASS: All tests pass")
print(staConnect.get_all_message())
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -