summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-03-13 21:07:15 +0100
committerThomas Miedema <thomasmiedema@gmail.com>2015-03-13 21:07:43 +0100
commitcc07a0ba64b554ffd1ff85757b02cd79d30ed57a (patch)
tree521f3664cca8b2830ff0866294e2f749710c7521 /testsuite/driver/testlib.py
parent71fcc4c096ec0b575522e4c2d0104ef7a71a13c5 (diff)
downloadhaskell-cc07a0ba64b554ffd1ff85757b02cd79d30ed57a.tar.gz
Move the function strip_quotes to testutil.py
If one runs the testsuite with a profiling compiler, during the import of `testlib.py`, `testlib.py` sets the global variable `gs_working`. To do so, it executes a few statements which require the function `strip_quotes` to be in scope. But that function only gets defined at the very end of testlib.py. This patch moves the definition of `strip_quotes` to testutil.py, which is imported at the very top of testlib.py. This unbreaks the nightly builders. Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D728
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r--testsuite/driver/testlib.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index fec6939168..1d3ef11cfd 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -2283,7 +2283,3 @@ def getStdout(cmd):
return stdout
else:
raise Exception("Need subprocess to get stdout, but don't have it")
-
-def strip_quotes(s):
- # Don't wrap commands to subprocess.call/Popen in quotes.
- return s.strip('\'"')