Skip to content

Commit

Permalink
qa/tasks/workunit: leave workunits inside git checkout
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 4602884)
  • Loading branch information
liewegas authored and smithfarm committed Dec 27, 2016
1 parent 5b402f8 commit 117d38e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qa/tasks/workunit.py
Expand Up @@ -305,8 +305,8 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None):
scratch_tmp = os.path.join(mnt, 'client.{id}'.format(id=id_), 'tmp')
else:
scratch_tmp = os.path.join(mnt, subdir)
srcdir = '{tdir}/workunit.{role}'.format(tdir=testdir, role=role)
clonedir = '{tdir}/clone.{role}'.format(tdir=testdir, role=role)
srcdir = '{cdir}/qa/workunits'.format(cdir=clonedir)

git_url = teuth_config.get_ceph_git_url()
remote.run(
Expand All @@ -320,8 +320,6 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None):
'cd', '--', clonedir,
run.Raw('&&'),
'git', 'checkout', refspec,
run.Raw('&&'),
'mv', 'qa/workunits', srcdir,
],
)

Expand Down Expand Up @@ -394,6 +392,6 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None):
remote.run(
logger=log.getChild(role),
args=[
'rm', '-rf', '--', workunits_file, srcdir, clonedir,
'rm', '-rf', '--', workunits_file, clonedir,
],
)

0 comments on commit 117d38e

Please sign in to comment.