From cdf536363fe7bcce01b738fdf716f0eb2a4cff06 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 11 Jun 2020 16:29:12 +0000 Subject: [PATCH] test: fix example test after commit a7b8ced9. --- nmigen/test/test_examples.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) -- 2.30.2