Skip to content

Commit

Permalink
Tools: fix flake8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Oct 19, 2023
1 parent d4e3be4 commit 0e3c0c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tools/autotest/common.py
Original file line number Diff line number Diff line change
@@ -1549,7 +1549,7 @@ def __init__(self,
self.generate_junit = generate_junit
if generate_junit:
try:
import junitparser
from junitparser import TestCase, TestSuite, JUnitXml, Skipped, Failure
except ImportError as e:
raise ImportError(f"Junit export need junitparser package.\n {e} \nTry: python -m pip install junitparser")

@@ -13511,7 +13511,6 @@ def autotest(self, tests=None, allow_skips=True, step_name=None):

def create_junit_report(self, test_name: str, results: List[Result], skip_list: list[tuple[Test, dict[str, str]]]) -> None:
"""Generate Junit report from the autotest results"""
from junitparser import TestCase, TestSuite, JUnitXml, Skipped, Failure
frame = self.vehicleinfo_key()
xml_filename = f"autotest_result_{frame}_{test_name}_junit.xml"
self.progress(f"Writing test result in jUnit format to {xml_filename}\n")

0 comments on commit 0e3c0c9

Please sign in to comment.