mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
lf_check.py : meta.txt created with test_tag information
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -1036,12 +1036,16 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip,qa_url=qa_url)
|
||||
if meta_data_path != "":
|
||||
meta_data = open(meta_data_path,'w')
|
||||
meta_data.write('$ Generated by Candela Technologies LANforge network testing tool\n')
|
||||
meta_data.write('$meta.txt \n')
|
||||
meta_data.write('$ meta.txt file location\n')
|
||||
meta_data.write("file {path}\n".format(path=meta_data_path))
|
||||
meta_data.write('$ LANforge command\n')
|
||||
meta_data.write("command {command}\n".format(command=command))
|
||||
# split command at test-tag , at rest of string once at the actual test-tag value
|
||||
test_tag = command.split('test-tag',maxsplit=1)[-1].split(maxsplit=1)[0]
|
||||
meta_data.write("command: {command}".format(command=command))
|
||||
test_tag = command.split('test_tag',maxsplit=1)[-1].split(maxsplit=1)[0]
|
||||
test_tag = test_tag.replace("'","")
|
||||
meta_data.write('$ LANforge command\n')
|
||||
meta_data.write("test_tag {test_tag}\n".format(test_tag=test_tag))
|
||||
meta_data.write('$ LANforge Information\n')
|
||||
meta_data.close()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user