From a910549ca9f7d07d7610eb27d8b0709dc42802a6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 25 Apr 2012 03:08:45 -0500 Subject: Fixes so that tests can run under distcheck --- test/LedgerHarness.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/LedgerHarness.py') diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py index 3e797e85..b8900971 100755 --- a/test/LedgerHarness.py +++ b/test/LedgerHarness.py @@ -52,8 +52,6 @@ class LedgerHarness: self.gmalloc = '--gmalloc' in argv self.python = '--python' in argv - os.chdir(self.sourcepath) - def run(self, command, verify=None, gmalloc=None, columns=True): env = os.environ.copy() @@ -89,7 +87,8 @@ class LedgerHarness: command = valgrind + ' -q ' + command return Popen(command, shell=True, close_fds=True, env=env, - stdin=PIPE, stdout=PIPE, stderr=PIPE) + stdin=PIPE, stdout=PIPE, stderr=PIPE, + cwd=self.sourcepath) def read(self, fd): text = "" -- cgit v1.2.3