Skip to content

Commit

Permalink
server/git_kernel.py - Use the correct base directory
Browse files Browse the repository at this point in the history
The original code of git_kernel.py was attributing an
incorrect path to the source code directory in the
client. Fixing that.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: svn://test.kernel.org/autotest/trunk@4811 592f7852-d20e-0410-864c-8624ca9c26a4
  • Loading branch information
lmr committed Sep 26, 2010
1 parent aa93deb commit c1d15a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/git_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,16 @@ def install(self, host, build=True, builddir=None, revision=None):
logging.info('Checked out revision: %s', self._revision)

if not builddir:
self._build = os.path.join(host.get_tmp_dir(),"build")
self._build = os.path.join(host.get_tmp_dir(), "build")
logging.warning('Builddir %s is not persistent (it will be erased '
'in future jobs)', self._build)

# push source to host for install
logging.info('Pushing %s to host', self.source_material)
host.send_file(self.source_material, self._build)
remote_source_material= os.path.join(self._build,
os.path.basename(self.source_material))

# use a source_kernel to configure, patch, build and install.
sk = source_kernel.SourceKernel(remote_source_material)
sk = source_kernel.SourceKernel(self._build)

if build:
# apply patches
Expand Down

0 comments on commit c1d15a0

Please sign in to comment.