From 45df0b264edfefd25bb9fba02a6d9fc066e71bcb Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Sun, 28 Apr 2013 12:15:42 -0700 Subject: [PATCH] workunit: use passed refspec rather than checking sha1 again Signed-off-by: Samuel Just Reviewed-by: Josh Durgin --- teuthology/task/workunit.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/teuthology/task/workunit.py b/teuthology/task/workunit.py index d7f4aca04d..b077fafb3b 100644 --- a/teuthology/task/workunit.py +++ b/teuthology/task/workunit.py @@ -232,8 +232,6 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None): scratch_tmp = os.path.join(mnt, subdir) srcdir = '{tdir}/workunit.{role}'.format(tdir=testdir, role=role) - ceph_ref = ctx.summary.get('ceph-sha1', 'master') - remote.run( logger=log.getChild(role), args=[ @@ -278,7 +276,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None): run.Raw('&&'), 'cd', '--', scratch_tmp, run.Raw('&&'), - run.Raw('CEPH_REF={ref}'.format(ref=ceph_ref)), + run.Raw('CEPH_REF={ref}'.format(ref=refspec)), run.Raw('TESTDIR="{tdir}"'.format(tdir=testdir)), 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