]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
testing: export TESTDIR in workunit task.
authorJoe Buck <jbbuck@gmail.com>
Wed, 13 Feb 2013 22:32:52 +0000 (14:32 -0800)
committerJoe Buck <jbbuck@gmail.com>
Mon, 18 Feb 2013 23:22:52 +0000 (15:22 -0800)
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 <jbbuck@gmail.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
teuthology/task/workunit.py

index e5873cec164f33192be449a082ba3322fe526461..3f5225df6d1ea03af8f7f6b76ac506170cd5966b 100644 (file)
@@ -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)),