lf_check.py : pep8 linting autopep8

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-12-19 07:49:23 -07:00
committed by shivam
parent 02d7f9c4aa
commit ef9c02ad5c

View File

@@ -88,6 +88,22 @@ Starting LANforge:
'''
import requests
import pandas as pd
import paramiko
import shlex
import shutil
import csv
import subprocess
import json
import argparse
from time import sleep
import time
import logging
import socket
import importlib
import platform
import os
import datetime
import sys
import traceback
@@ -96,22 +112,6 @@ if sys.version_info[0] != 3:
print("This script requires Python3")
exit()
import os
import platform
import importlib
import socket
import logging
import time
from time import sleep
import argparse
import json
import subprocess
import csv
import shutil
import shlex
import paramiko
import pandas as pd
import requests
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
lf_report = importlib.import_module("lf_report")
@@ -1293,7 +1293,7 @@ note if all json data (rig,dut,tests) in same json file pass same json in for a
with open(args.json_test, 'r') as json_test_config:
json_test = json.load(json_test_config)
except json.JSONDecodeError as err:
print("ERROR reading {json}, ERROR: {error} ".format(json=args.json_test,error=err))
print("ERROR reading {json}, ERROR: {error} ".format(json=args.json_test, error=err))
exit(1)
# Test-rig information information
@@ -1328,9 +1328,9 @@ note if all json data (rig,dut,tests) in same json file pass same json in for a
_output_pdf="{dir}.pdf".format(dir=__dir))
current_time = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime())
csv_results = "{dir}-{outfile}-{current_time}.csv".format(dir=__dir,outfile=args.outfile,current_time=current_time)
csv_results = "{dir}-{outfile}-{current_time}.csv".format(dir=__dir, outfile=args.outfile, current_time=current_time)
csv_results = report.file_add_path(csv_results)
outfile_name = "{dir}-{outfile}-{current_time}".format(dir=__dir,outfile=args.outfile,current_time=current_time)
outfile_name = "{dir}-{outfile}-{current_time}".format(dir=__dir, outfile=args.outfile, current_time=current_time)
outfile = report.file_add_path(outfile_name)
report_path = report.get_report_path()
log_path = report.get_log_path()
@@ -1496,7 +1496,6 @@ note if all json data (rig,dut,tests) in same json file pass same json in for a
lf_suite_time['Suite End'] = [check.suite_end_time]
lf_suite_time['Suite Duration'] = [check.suite_duration]
lf_test_summary = pd.DataFrame()
lf_test_summary['Tests Run'] = [check.tests_run]
lf_test_summary['Success'] = [check.tests_success]
@@ -1605,5 +1604,6 @@ note if all json data (rig,dut,tests) in same json file pass same json in for a
# print out locations of results
print("html_report_latest: {latest}".format(latest=html_report_latest))
if __name__ == '__main__':
main()