Added the ability to specify a regex filter for the part-name on the synthesis tests. Implemented as --synth-part. Closes #179 (#180)
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from typing import List
|
||||
import os
|
||||
from typing import List
|
||||
|
||||
import pytest
|
||||
|
||||
from .base_testcase import BaseTestCase
|
||||
from .synthesizers import get_synthesizer_cls
|
||||
|
||||
|
||||
class SynthTestCase(BaseTestCase):
|
||||
|
||||
def _get_synth_files(self) -> List[str]:
|
||||
@@ -26,7 +27,7 @@ class SynthTestCase(BaseTestCase):
|
||||
def run_synth(self) -> None:
|
||||
name = self.request.config.getoption("--synth-tool")
|
||||
synth_cls = get_synthesizer_cls(name)
|
||||
synth = synth_cls(self)
|
||||
synth = synth_cls(self, request=self.request)
|
||||
|
||||
# cd into the build directory
|
||||
cwd = os.getcwd()
|
||||
|
||||
Reference in New Issue
Block a user