From: whitequark Date: Thu, 11 Jun 2020 16:29:12 +0000 (+0000) Subject: test: fix example test after commit a7b8ced9. X-Git-Tag: working2~7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca360917ba6a1d24dce5ec2021c8aff2aaf7162f;p=nmigen.git test: fix example test after commit a7b8ced9. --- diff --git a/nmigen/test/test_examples.py b/nmigen/test/test_examples.py index 94b9377..44211d3 100644 --- a/nmigen/test/test_examples.py +++ b/nmigen/test/test_examples.py @@ -8,7 +8,8 @@ from .utils import * def example_test(name): path = (Path(__file__).parent / ".." / ".." / "examples" / name).resolve() def test_function(self): - subprocess.check_call([sys.executable, str(path), "generate"], stdout=subprocess.DEVNULL) + subprocess.check_call([sys.executable, str(path), "generate", "-t", "v"], + stdout=subprocess.DEVNULL) return test_function @@ -25,4 +26,9 @@ class ExamplesTestCase(FHDLTestCase): test_mem = example_test("basic/mem.py") test_pmux = example_test("basic/pmux.py") test_por = example_test("basic/por.py") - test_uart = example_test("basic/uart.py") + + def test_uart(self): + path = (Path(__file__).parent / ".." / ".." / "examples" / "basic" / "uart.py").resolve() + def test_function(self): + subprocess.check_call([sys.executable, str(path), "generate"], + stdout=subprocess.DEVNULL)