mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
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:
committed by
shivam
parent
fcf7c22bc9
commit
45d7790f35
@@ -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)
|
||||
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user