mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-05 02:30:08 +01:00
black formatting
This commit is contained in:
@@ -29,7 +29,9 @@ class EntryBuilder:
|
|||||||
comment = " # " + comment
|
comment = " # " + comment
|
||||||
else:
|
else:
|
||||||
comment = ""
|
comment = ""
|
||||||
description = "- name: {}{}\n operands: {}\n".format(instruction_name, comment, "[]" if len(operand_types) == 0 else "")
|
description = "- name: {}{}\n operands: {}\n".format(
|
||||||
|
instruction_name, comment, "[]" if len(operand_types) == 0 else ""
|
||||||
|
)
|
||||||
|
|
||||||
for ot in operand_types:
|
for ot in operand_types:
|
||||||
if ot == "imd":
|
if ot == "imd":
|
||||||
|
|||||||
@@ -29,7 +29,9 @@ class TestCLI(unittest.TestCase):
|
|||||||
|
|
||||||
def test_check_arguments(self):
|
def test_check_arguments(self):
|
||||||
parser = osaca.create_parser(parser=ErrorRaisingArgumentParser())
|
parser = osaca.create_parser(parser=ErrorRaisingArgumentParser())
|
||||||
args = parser.parse_args(["--arch", "WRONG_ARCH", self._find_file("gs", "csx", "gcc")])
|
args = parser.parse_args(
|
||||||
|
["--arch", "WRONG_ARCH", self._find_file("gs", "csx", "gcc")]
|
||||||
|
)
|
||||||
with self.assertRaises(ValueError):
|
with self.assertRaises(ValueError):
|
||||||
osaca.check_arguments(args, parser)
|
osaca.check_arguments(args, parser)
|
||||||
args = parser.parse_args(
|
args = parser.parse_args(
|
||||||
@@ -234,7 +236,9 @@ class TestCLI(unittest.TestCase):
|
|||||||
# Run tests with --lines option
|
# Run tests with --lines option
|
||||||
parser = osaca.create_parser()
|
parser = osaca.create_parser()
|
||||||
kernel_x86 = "triad_x86_iaca.s"
|
kernel_x86 = "triad_x86_iaca.s"
|
||||||
args_base = parser.parse_args(["--arch", "csx", self._find_test_file(kernel_x86)])
|
args_base = parser.parse_args(
|
||||||
|
["--arch", "csx", self._find_test_file(kernel_x86)]
|
||||||
|
)
|
||||||
output_base = StringIO()
|
output_base = StringIO()
|
||||||
osaca.run(args_base, output_file=output_base)
|
osaca.run(args_base, output_file=output_base)
|
||||||
output_base = output_base.getvalue().split("\n")[8:]
|
output_base = output_base.getvalue().split("\n")[8:]
|
||||||
|
|||||||
Reference in New Issue
Block a user