[GHC] #14181: make test WAY=xxx broken

GHC ghc-devs at haskell.org
Sat Sep 2 05:40:57 UTC 2017


#14181: make test WAY=xxx broken
-------------------------------------+-------------------------------------
           Reporter:  angerman       |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Test Suite     |           Version:  8.2.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:  x86_64         |   Type of failure:  None/Unknown
  (amd64)                            |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 It seems like running
 {{{
 make test WAY=someWay
 }}}
 is broken. Looking at the `runtest.py`, it seems that we parse the
 arguments to the test driver before reading the configuration file (e.g.
 `config/ghc`), and thus the `--way` flags arguments are not available.

 E.g. the way options get populated, once the `--config-file` argument is
 processed. But the argument parser seems to be eager and as such the
 handling of the `--config-file` happens *after* all of the arguments have
 been parsed. Therefore the set of available `--way`s are always the empty
 set.

 I don't know if python2 was lazy here. But with `python3` using `--way`
 seems impossible.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14181>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list