diff options
author | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2014-10-03 19:18:38 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2014-10-03 19:18:38 +0200 |
commit | e4a597f2f527ba0cd15cb51dda15cb51871c984e (patch) | |
tree | 6d80230a83eee135e8a0b19d2a3e08725f441f81 /testsuite/config | |
parent | 582217fc25167afa0111c398aca65727a9dd9b6e (diff) | |
download | haskell-e4a597f2f527ba0cd15cb51dda15cb51871c984e.tar.gz |
Revert "Basic Python 3 support for testsuite driver (Trac #9184)"
This reverts commit 084d241b316bfa12e41fc34cae993ca276bf0730.
This is a possible culprit of Windows breakage reported at ghc-devs.
Diffstat (limited to 'testsuite/config')
-rw-r--r-- | testsuite/config/ghc | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/testsuite/config/ghc b/testsuite/config/ghc index 84b89d49bb..031d955552 100644 --- a/testsuite/config/ghc +++ b/testsuite/config/ghc @@ -148,17 +148,21 @@ config.way_rts_flags = { # Useful classes of ways that can be used with only_ways() and # expect_broken_for(). -prof_ways = [x[0] for x in config.way_flags('dummy_name').items() - if '-prof' in x[1]] +prof_ways = map (lambda x: x[0], \ + filter(lambda x: '-prof' in x[1], \ + config.way_flags('dummy_name').items())) -threaded_ways = [x[0] for x in config.way_flags('dummy_name').items() - if '-threaded' in x[1] or 'ghci' == x[0]] +threaded_ways = map (lambda x: x[0], \ + filter(lambda x: '-threaded' in x[1] or 'ghci' == x[0], \ + config.way_flags('dummy_name').items())) -opt_ways = [x[0] for x in config.way_flags('dummy_name').items() - if '-O' in x[1]] +opt_ways = map (lambda x: x[0], \ + filter(lambda x: '-O' in x[1], \ + config.way_flags('dummy_name').items())) -llvm_ways = [x[0] for x in config.way_flags('dummy_name').items() - if '-fflvm' in x[1]] +llvm_ways = map (lambda x: x[0], \ + filter(lambda x: '-fllvm' in x[1], \ + config.way_flags('dummy_name').items())) def get_compiler_info(): # This should really not go through the shell @@ -188,7 +192,7 @@ def get_compiler_info(): if re.match(".*_p(_.*|$)", rtsInfoDict["RTS way"]): config.compiler_profiled = True - config.run_ways = [x for x in config.run_ways if x != 'ghci'] + config.run_ways = filter(lambda x: x != 'ghci', config.run_ways) else: config.compiler_profiled = False |