mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
tos: Create shell file to communicate directories and fnames.
Easily parsed by shell script for automated testing.
This commit is contained in:
@@ -413,9 +413,9 @@ def main():
|
|||||||
# Station is up, create connection
|
# Station is up, create connection
|
||||||
# Create connections.
|
# Create connections.
|
||||||
# First, delete any old ones
|
# First, delete any old ones
|
||||||
cxn = "scr-tos+-%i"%count
|
cxn = "scr-tos-%i"%count
|
||||||
ena = "scr-tos+-%i-A"%count
|
ena = "scr-tos-%i-A"%count
|
||||||
enb = "scr-tos+-%i-B"%count
|
enb = "scr-tos-%i-B"%count
|
||||||
|
|
||||||
cxnames.append(cxn)
|
cxnames.append(cxn)
|
||||||
endpnames.append(ena)
|
endpnames.append(ena)
|
||||||
@@ -769,6 +769,7 @@ def main():
|
|||||||
csv.close()
|
csv.close()
|
||||||
print("CSV report data saved to: %s"%(csvfname))
|
print("CSV report data saved to: %s"%(csvfname))
|
||||||
|
|
||||||
|
tstr = ""
|
||||||
if sniffer_radios != "":
|
if sniffer_radios != "":
|
||||||
now = time.time()
|
now = time.time()
|
||||||
if now < sniff_done_at:
|
if now < sniff_done_at:
|
||||||
@@ -786,6 +787,16 @@ def main():
|
|||||||
print("Sniffer will complete in %f seconds."%(waitfor))
|
print("Sniffer will complete in %f seconds."%(waitfor))
|
||||||
|
|
||||||
|
|
||||||
|
# Create a file easily sourced by a shell script to communicate the directory
|
||||||
|
# name and such.
|
||||||
|
fname = "TOS_PLUS.sh"
|
||||||
|
sh = open(fname, "w")
|
||||||
|
sh.write("CAPTURE_DIR=%s\n"%(tstr))
|
||||||
|
sh.write("CSV_FILE=%s\n"%(csvfname))
|
||||||
|
sh.write("XLSX_FILE=%s\n"%(outfile))
|
||||||
|
|
||||||
|
sh.close()
|
||||||
|
|
||||||
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
|
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user