From 84d7f37fdb53e22cc9e0ccf6bf60835016c9f5a9 Mon Sep 17 00:00:00 2001 From: Joe Buck Date: Wed, 13 Feb 2013 14:32:52 -0800 Subject: [PATCH] testing: export TESTDIR in workunit task. Some command-line tools need to reference the path to the test directory, which is created at run-time. We export this as TESTDIR Signed-off-by: Joe Buck Reviewed-by: Sam Lang --- teuthology/task/workunit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/teuthology/task/workunit.py b/teuthology/task/workunit.py index e5873cec16..3f5225df6d 100644 --- a/teuthology/task/workunit.py +++ b/teuthology/task/workunit.py @@ -280,6 +280,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None): run.Raw('LD_LIBRARY_PATH="$LD_LIBRARY_PATH:{tdir}/binary/usr/local/lib"'.format(tdir=testdir)), run.Raw('CEPH_JAVA_PATH="{tdir}/binary/usr/local/share/java"'.format(tdir=testdir)), run.Raw('CEPH_CONF="{tdir}/ceph.conf"'.format(tdir=testdir)), + run.Raw('TESTDIR="{tdir}"'.format(tdir=testdir)), run.Raw('CEPH_SECRET_FILE="{file}"'.format(file=secretfile)), run.Raw('CEPH_ID="{id}"'.format(id=id_)), run.Raw('PYTHONPATH="$PYTHONPATH:{tdir}/binary/usr/local/lib/python2.7/dist-packages:{tdir}/binary/usr/local/lib/python2.6/dist-packages"'.format(tdir=testdir)), -- 2.39.5