sta_connect2.py : added exit(1) for fail, exit(0) for pass

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2022-03-29 10:48:31 -06:00
committed by shivam
parent fcf7c22bc9
commit 45d7790f35

View File

@@ -1049,16 +1049,20 @@ CLI Example for kpi.csv, variable tx/rx rates, and pdu size:
# py-json/lanforge/lfcli_base.py - get_all_message():
logger.info(staConnect.get_all_message())
# TODO clean up pass fail to use realm
if not is_passing:
logger.info("FAIL: Some tests failed")
else:
logger.info("PASS: All tests pass")
# cleanup stations
if not args.no_cleanup:
staConnect.cleanup()
# Added Exit codes
if not is_passing:
logger.info("FAIL: Some tests failed")
exit(1)
else:
logger.info("PASS: All tests pass")
exit(0)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -