Always ignore user-package-db when running tests
authorThomas Miedema <thomasmiedema@gmail.com>
Mon, 23 Feb 2015 09:40:23 +0000 (03:40 -0600)
committerAustin Seipp <austin@well-typed.com>
Mon, 23 Feb 2015 09:40:24 +0000 (03:40 -0600)
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

testsuite/driver/testlib.py

index 6fc86e4..ac6d97c 100644 (file)
@@ -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