[Git][ghc/ghc][wip/angerman/cross-test-suite] make it a Path!

Moritz Angermann gitlab at gitlab.haskell.org
Thu Jul 16 01:43:21 UTC 2020



Moritz Angermann pushed to branch wip/angerman/cross-test-suite at Glasgow Haskell Compiler / GHC


Commits:
8d0c0d95 by Moritz Angermann at 2020-07-16T01:43:09+00:00
make it a Path!

- - - - -


1 changed file:

- testsuite/driver/testlib.py


Changes:

=====================================
testsuite/driver/testlib.py
=====================================
@@ -1652,7 +1652,7 @@ def simple_run(name: TestName, way: WayName, prog: str, extra_run_opts: str) ->
     # The test wrapper. Default to $TOP / driver / id
     # for the identity test-wrapper.
     if config.test_wrapper is None:
-        test_wrapper = config.top / "driver" / "id"
+        test_wrapper = Path(config.top) / "driver" / "id"
     else:
         test_wrapper = config.test_wrapper
 
@@ -2370,7 +2370,7 @@ def does_ghostscript_work() -> bool:
         return False
 
     try:
-        if runCmd(genGSCmd(config.top / 'config' / 'good.ps')) != 0:
+        if runCmd(genGSCmd(Path(config.top) / 'config' / 'good.ps')) != 0:
             gsNotWorking("gs can't process good input")
             return False
     except Exception as e:
@@ -2378,7 +2378,7 @@ def does_ghostscript_work() -> bool:
         return False
 
     try:
-        cmd = genGSCmd(config.top / 'config' / 'bad.ps') + ' >/dev/null 2>&1'
+        cmd = genGSCmd(Path(config.top) / 'config' / 'bad.ps') + ' >/dev/null 2>&1'
         if runCmd(cmd) == 0:
             gsNotWorking('gs accepts bad input')
             return False



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8d0c0d9544c9b01e6e67d9646c68f4d01da0008a

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8d0c0d9544c9b01e6e67d9646c68f4d01da0008a
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200715/5c97bd3a/attachment-0001.html>


More information about the ghc-commits mailing list