Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • testsuite/driver/testlib.py
    ... ... @@ -2541,9 +2541,7 @@ async def simple_build(name: Union[TestName, str],
    2541 2541
     
    
    2542 2542
         flags = ' '.join(get_compiler_flags() + config.way_flags[way])
    
    2543 2543
     
    
    2544
    -    cmd = ('{cmd_prefix} '
    
    2545
    -           '{{compiler}} {to_do} {src_args} {flags} {extra_hc_opts}'
    
    2546
    -          ).format(**locals())
    
    2544
    +    cmd = f'{cmd_prefix} {{compiler}} {to_do} {src_args} {flags} {extra_hc_opts}'
    
    2547 2545
     
    
    2548 2546
         if filter_with != '':
    
    2549 2547
             cmd = cmd + ' | ' + filter_with
    
    ... ... @@ -2742,13 +2740,12 @@ async def interpreter_run(name: TestName,
    2742 2740
     
    
    2743 2741
         flags = ' '.join(get_compiler_flags() + config.way_flags[way])
    
    2744 2742
     
    
    2745
    -    cmd = ('{{compiler}} {srcname} {flags} {extra_hc_opts}'
    
    2746
    -          ).format(**locals())
    
    2743
    +    cmd = f'{{compiler}} {srcname} {flags} {extra_hc_opts}'
    
    2747 2744
     
    
    2748 2745
         if opts.cmd_wrapper is not None:
    
    2749 2746
             cmd = opts.cmd_wrapper(cmd);
    
    2750 2747
     
    
    2751
    -    cmd = 'cd "{opts.testdir}" && {cmd}'.format(**locals())
    
    2748
    +    cmd = f'cd "{opts.testdir}" && {cmd}'
    
    2752 2749
     
    
    2753 2750
         exit_code = await runCmd(cmd, script, stdout, stderr, timeout_multiplier=opts.run_timeout_multiplier)
    
    2754 2751
     
    
    ... ... @@ -2946,7 +2943,7 @@ async def check_hp_ok(name: TestName) -> bool:
    2946 2943
         opts = getTestOpts()
    
    2947 2944
     
    
    2948 2945
         # do not qualify for hp2ps because we should be in the right directory
    
    2949
    -    hp2psCmd = 'cd "{opts.testdir}" && {{hp2ps}} {name}'.format(**locals())
    
    2946
    +    hp2psCmd = f'cd "{opts.testdir}" && {{hp2ps}} {name}'
    
    2950 2947
     
    
    2951 2948
         hp2psResult = await runCmd(hp2psCmd, print_output=True)
    
    2952 2949