David Eichmann pushed to branch wip/davide/testdriver-cleanup at Glasgow Haskell Compiler / GHC Commits: f857e2ad by David Eichmann at 2026-11-13T15:11:14+00:00 test driver: clarify `make_depend()` and `top_mod` type and usage - - - - - 1 changed file: - testsuite/driver/testlib.py Changes: ===================================== testsuite/driver/testlib.py ===================================== @@ -2071,13 +2071,13 @@ async def multi_compile( name, way, top_mod, extra_mods, extra_hc_opts ): async def multi_compile_fail( name, way, top_mod, extra_mods, extra_hc_opts ): return await do_compile( name, way, True, top_mod, extra_mods, [], extra_hc_opts) -async def make_depend( name, way, mods, extra_hc_opts ): - return await do_compile( name, way, False, Path(' '.join(mods)), [], [], extra_hc_opts, mode = '-M') +async def make_depend( name: TestName, way: WayName, mods: List[str], extra_hc_opts: str ): + return await do_compile( name, way, False, ' '.join(mods), [], [], extra_hc_opts, mode = '-M') async def do_compile(name: TestName, way: WayName, should_fail: bool, - top_mod: Optional[Path], + top_mod: Optional[Union[Path, str]], extra_mods: List[str], units: List[str], extra_hc_opts: str, @@ -2353,7 +2353,7 @@ async def simple_build(name: Union[TestName, str], way: WayName, extra_hc_opts: str, should_fail: bool, - top_mod: Optional[Path], + top_mod: Optional[Union[Path, str]], units: List[str], link: bool, addsuf: bool, @@ -2376,7 +2376,7 @@ async def simple_build(name: Union[TestName, str], else: srcname = add_hs_lhs_suffix(name) else: - srcname = Path(name) + srcname = name if mode is not None: to_do = mode View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f857e2adceac3ab0d9316c1feff7d20f... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f857e2adceac3ab0d9316c1feff7d20f... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help