Commit a42d391f by Anna-Mariya

Last change

parent f7b9bdd8
...@@ -53,7 +53,6 @@ def generate_main_code(firmware_analyses, firmware_meta_data, jinja_environment) ...@@ -53,7 +53,6 @@ def generate_main_code(firmware_analyses, firmware_meta_data, jinja_environment)
return template.render(analysis=firmware_analyses, meta_data=firmware_meta_data) return template.render(analysis=firmware_analyses, meta_data=firmware_meta_data)
def generate_analysis_codes(environment, analysis): def generate_analysis_codes(environment, analysis):
return [('{}.tex'.format(analysis_plugin), _render_analysis_result(analysis[analysis_plugin], environment, analysis_plugin)) for analysis_plugin in analysis] return [('{}.tex'.format(analysis_plugin), _render_analysis_result(analysis[analysis_plugin], environment, analysis_plugin)) for analysis_plugin in analysis]
...@@ -90,7 +89,8 @@ def execute_pdflatex(tmp_dir): ...@@ -90,7 +89,8 @@ def execute_pdflatex(tmp_dir):
os.chdir(current_dir) os.chdir(current_dir)
def generate_pdf_report(firmware_uid="bab8d95fc42176abc9126393b6035e4012ebccc82c91e521b91d3bcba4832756_3801088"): def generate_pdf_report(firmware_uid="bab8d95fc42176abc9126393b6035e4012ebccc82c91e521b91d3bcba4832756_3801088"
""):
request_url = create_request_url(firmware_uid) request_url = create_request_url(firmware_uid)
firmware_analyses, firmware_meta_data = request_firmware_data(request_url) firmware_analyses, firmware_meta_data = request_firmware_data(request_url)
......
...@@ -35,6 +35,7 @@ def _setup_argparser(): ...@@ -35,6 +35,7 @@ def _setup_argparser():
parser.add_argument('-L', '--log_level', help='define the log level [DEBUG,INFO,WARNING,ERROR]') parser.add_argument('-L', '--log_level', help='define the log level [DEBUG,INFO,WARNING,ERROR]')
parser.add_argument('-d', '--debug', action='store_true', default=False, help='print debug messages') parser.add_argument('-d', '--debug', action='store_true', default=False, help='print debug messages')
parser.add_argument('-C', '--config_file', help='set path to config File', default=STANDARD_CONF_FILE) parser.add_argument('-C', '--config_file', help='set path to config File', default=STANDARD_CONF_FILE)
parser.add_argument('-u', '--uid', help='firmware analysis UID', dest="UID")
return parser.parse_args() return parser.parse_args()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment