diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-03-15 21:06:39 +0100 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-03-16 18:33:00 +0100 |
commit | beee618c4ab8f725acd4dce3ef8a0d4ce84bb6ec (patch) | |
tree | 916bfb59ad40b50c3f1594f6ce1e73320d1f4ded /testsuite/driver | |
parent | 817d2c3436a99d998c79c5f9755c03aa21ced32c (diff) | |
download | haskell-beee618c4ab8f725acd4dce3ef8a0d4ce84bb6ec.tar.gz |
Fix testsuite driver for a profiling compiler
This should have been part of commit 5258566ee5c8, to allow expansion of
'{hp2ps}' in a command string to `config.hp2ps`.
Reviewed by: austin
Differential Revision: https://phabricator.haskell.org/D734
Diffstat (limited to 'testsuite/driver')
-rw-r--r-- | testsuite/driver/testlib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 1d3ef11cfd..59230abbc6 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -1828,6 +1828,9 @@ def rawSystemWithTimeout(cmd_and_args): # Then, when using the native Python, os.system will invoke the cmd shell def runCmd( cmd ): + # Format cmd using config. Example: cmd='{hpc} report A.tix' + cmd = cmd.format(**config.__dict__) + if_verbose( 3, cmd ) r = 0 if config.os == 'mingw32': |