mirror of
https://github.com/ceph/ceph
synced 2024-12-14 23:46:28 +00:00
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 <jbbuck@gmail.com> Reviewed-by: Sam Lang <sam.lang@inktank.com>
This commit is contained in:
parent
d790eeb451
commit
84d7f37fdb
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user