summaryrefslogtreecommitdiff
path: root/cmdtest
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-25 16:34:49 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-25 16:34:49 +0100
commit48c9ad0bd660cae3d94c366e8c3aa949391eb7ad (patch)
treeaca161b0c066cdb0289a2a96e4a3a6a3ff835934 /cmdtest
parent20f3d86dbff3e509dc596bb86d12ec9520adf3e9 (diff)
downloadcmdtest-48c9ad0bd660cae3d94c366e8c3aa949391eb7ad.tar.gz
Add SRCDIR to environment, and make COMMAND an absolute path.
Diffstat (limited to 'cmdtest')
-rwxr-xr-xcmdtest3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdtest b/cmdtest
index 6559fb9..e0adf5e 100755
--- a/cmdtest
+++ b/cmdtest
@@ -102,8 +102,9 @@ class CommandTester(cliapp.Application):
def add_to_env(self):
env = dict(os.environ)
+ env['SRCDIR'] = os.getcwd()
env['DATADIR'] = self.datadir
- env['COMMAND'] = self.settings['command']
+ env['COMMAND'] = os.path.abspath(self.settings['command'])
return env
def run_test(self, test):