summaryrefslogtreecommitdiff
path: root/tests/history.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/history.py')
-rwxr-xr-xtests/history.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/history.py b/tests/history.py
index ae25c7cf2854..fff531652b1b 100755
--- a/tests/history.py
+++ b/tests/history.py
@@ -41,6 +41,11 @@ except ImportError:
script = sys.argv[0]
testdir = os.path.dirname(script)
+if "BC_TEST_OUTPUT_DIR" in os.environ:
+ outputdir = os.environ["BC_TEST_OUTPUT_DIR"]
+else:
+ outputdir = testdir
+
prompt = ">>> "
# This array is for escaping characters that are necessary to escape when
@@ -67,16 +72,6 @@ utf8_stress_strs = [
]
-def spawn(exe, args, env, encoding=None, codec_errors='strict'):
- if do_test:
- f = open(testdir + "/" + exedir + "_outputs/history_test.txt", "wb")
- return pexpect.popen_spawn.PopenSpawn([ exe ] + args, env=env,
- encoding=encoding, codec_errors=codec_errors, stderr=f)
- else:
- return pexpect.spawn(exe, args, env=env, encoding=encoding,
- codec_errors=codec_errors)
-
-
# Check that the child output the expected line. If history is false, then
# the output should change.
def check_line(child, expected, prompt=">>> ", history=True):