mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-20 20:14:57 +00:00
lf_cisco_power.py: help updates , email, exit_on_fail, exit_on_error
This commit is contained in:
@@ -147,6 +147,11 @@ def usage():
|
|||||||
print("--cleanup", "Clean up all stations after test completes, only need switch for True, Defaults False")
|
print("--cleanup", "Clean up all stations after test completes, only need switch for True, Defaults False")
|
||||||
print("--vht160", "Enables VHT160 in lanforge, only need switch for True, Defaults False")
|
print("--vht160", "Enables VHT160 in lanforge, only need switch for True, Defaults False")
|
||||||
print("--verbose","switch present will have verbose logging, only need switch for True, Defaults False")
|
print("--verbose","switch present will have verbose logging, only need switch for True, Defaults False")
|
||||||
|
print("--exit_on_fail","--exit_on_fail, exit on test failure")
|
||||||
|
print("--exit_on_error","--exit_on_error, exit on test error, test mechanics failed")
|
||||||
|
print('-e','--email', "--email user==<from email> passwd==<email password> to==<to email> smtp==<smtp server> port==<smtp port> 465 (SSL)")
|
||||||
|
|
||||||
|
|
||||||
print("-h|--help")
|
print("-h|--help")
|
||||||
|
|
||||||
# see https://stackoverflow.com/a/13306095/11014343
|
# see https://stackoverflow.com/a/13306095/11014343
|
||||||
@@ -231,8 +236,7 @@ def main():
|
|||||||
|
|
||||||
#current_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + "{:.3f}".format(time.time() - (math.floor(time.time())))[1:]
|
#current_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + "{:.3f}".format(time.time() - (math.floor(time.time())))[1:]
|
||||||
#print(current_time)
|
#print(current_time)
|
||||||
#
|
#usage()
|
||||||
|
|
||||||
args = None
|
args = None
|
||||||
try:
|
try:
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|||||||
Reference in New Issue
Block a user