David Eichmann pushed to branch wip/davide/testdriver-cleanup at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • testsuite/driver/testlib.py
    ... ... @@ -2071,13 +2071,13 @@ async def multi_compile( name, way, top_mod, extra_mods, extra_hc_opts ):
    2071 2071
     async def multi_compile_fail( name, way, top_mod, extra_mods, extra_hc_opts ):
    
    2072 2072
         return await do_compile( name, way, True, top_mod, extra_mods, [], extra_hc_opts)
    
    2073 2073
     
    
    2074
    -async def make_depend( name, way, mods, extra_hc_opts ):
    
    2075
    -    return await do_compile( name, way, False, Path(' '.join(mods)), [], [], extra_hc_opts, mode = '-M')
    
    2074
    +async def make_depend( name: TestName, way: WayName, mods: List[str], extra_hc_opts: str ):
    
    2075
    +    return await do_compile( name, way, False, ' '.join(mods), [], [], extra_hc_opts, mode = '-M')
    
    2076 2076
     
    
    2077 2077
     async def do_compile(name: TestName,
    
    2078 2078
                    way: WayName,
    
    2079 2079
                    should_fail: bool,
    
    2080
    -               top_mod: Optional[Path],
    
    2080
    +               top_mod: Optional[Union[Path, str]],
    
    2081 2081
                    extra_mods: List[str],
    
    2082 2082
                    units: List[str],
    
    2083 2083
                    extra_hc_opts: str,
    
    ... ... @@ -2353,7 +2353,7 @@ async def simple_build(name: Union[TestName, str],
    2353 2353
                      way: WayName,
    
    2354 2354
                      extra_hc_opts: str,
    
    2355 2355
                      should_fail: bool,
    
    2356
    -                 top_mod: Optional[Path],
    
    2356
    +                 top_mod: Optional[Union[Path, str]],
    
    2357 2357
                      units: List[str],
    
    2358 2358
                      link: bool,
    
    2359 2359
                      addsuf: bool,
    
    ... ... @@ -2376,7 +2376,7 @@ async def simple_build(name: Union[TestName, str],
    2376 2376
             else:
    
    2377 2377
                 srcname = add_hs_lhs_suffix(name)
    
    2378 2378
         else:
    
    2379
    -        srcname = Path(name)
    
    2379
    +        srcname = name
    
    2380 2380
     
    
    2381 2381
         if mode is not None:
    
    2382 2382
             to_do = mode