Fix up kernel build class
We need to actually store the results of the kernel build in a sensible place,
not just lob everything in a temporary directory. Break out the paramaters
of kernel.build() so we can specify separately where the different parts go.
Fix up all callers.
Also added a new test (kernelbuild) that utilizes the new functionality (and
is the simplest test yet ;-)).
Eliminate requirement to specify the tmpdir to kernel.build(), as most people
won't care, and it's just confusing. This is now an optional parameter.
When we do a kernel.build() from a control file, make sure we create a build
directory to store the results in in the results directory. Locate appropriate
build output in there. I'm not copying patches in there yet, will do that later
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@383 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/kernbench/kernbench.py b/client/tests/kernbench/kernbench.py
index 733c933..ffebeb5 100755
--- a/client/tests/kernbench/kernbench.py
+++ b/client/tests/kernbench/kernbench.py
@@ -10,7 +10,7 @@
tarball = self.bindir + '/linux-2.6.14.tar.bz2'
else:
tarball = '/usr/local/src/linux-2.6.14.tar.bz2'
- kernel = self.job.kernel(self.srcdir, tarball)
+ kernel = self.job.kernel(tarball, self.tmpdir)
kernel.config('')
# have to save this off, as we might use it in another run
kernel.pickle_dump(self.srcdir + '/.pickle')