From 4e317e64711a9f5829ad787ac99c96963f6c74ee Mon Sep 17 00:00:00 2001 From: Scott Wedge Date: Fri, 25 Feb 2022 11:04:13 -0600 Subject: [PATCH] sta_connect2.py: add --no_cleanup logic Signed-off-by: Scott Wedge --- py-scripts/sta_connect2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py-scripts/sta_connect2.py b/py-scripts/sta_connect2.py index ead9be3b..61b196da 100755 --- a/py-scripts/sta_connect2.py +++ b/py-scripts/sta_connect2.py @@ -990,7 +990,10 @@ CLI Example for kpi.csv, variable tx/rx rates, and pdu size: # report.write_pdf_with_timestamp(_page_size='A4', _orientation='Portrait') report.write_pdf_with_timestamp(_page_size='A4', _orientation='Landscape') - # staConnect.pre_cleanup() + if args.no_cleanup: + exit(0) + else: + staConnect.pre_cleanup() # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -