[commit: ghc] master: Always ignore user-package-db when running tests (30dc59e)

git at git.haskell.org git at git.haskell.org
Mon Feb 23 09:40:29 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/30dc59e889205ee62ce77168616f7a4183811d74/ghc

>---------------------------------------------------------------

commit 30dc59e889205ee62ce77168616f7a4183811d74
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Mon Feb 23 03:40:23 2015 -0600

    Always ignore user-package-db when running tests
    
    Summary:
    The user package database was already ignored for systems that
    `have_subprocess`.
    
    To [wiki:Debugging/InstallingPackagesInplace install] a package inplace:
    `cabal install
      --with-compiler=<inplace-ghc>
      --with-package-db=<inplace-package-db>`
      <package>
    
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D668


>---------------------------------------------------------------

30dc59e889205ee62ce77168616f7a4183811d74
 testsuite/driver/testlib.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 6fc86e4..ac6d97c 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -114,8 +114,8 @@ def _reqlib( name, opts, lib ):
             p.communicate()
             r = p.wait()
         else:
-            r = os.system(config.ghc_pkg + ' describe ' + lib
-                                         + ' > /dev/null 2> /dev/null')
+            r = os.system(config.ghc_pkg + ' --no-user-package-db describe '
+                                         + lib + ' > /dev/null 2> /dev/null')
         got_it = r == 0
         have_lib[lib] = got_it
 



More information about the ghc-commits mailing list