test: fix example test after commit a7b8ced9.

This commit is contained in:
whitequark 2020-06-11 16:29:12 +00:00
parent 545e49c2ca
commit ca360917ba

View file

@ -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)