Autodetect where the linux src tarball is
git-svn-id: http://test.kernel.org/svn/autotest/trunk@179 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tests/kernbench/kernbench.py b/tests/kernbench/kernbench.py
index fc74b64..e6e4769 100755
--- a/tests/kernbench/kernbench.py
+++ b/tests/kernbench/kernbench.py
@@ -6,7 +6,11 @@
def setup(self):
# http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.14.tar.bz2
- tarball = self.bindir + '/linux-2.6.14.tar.bz2'
+ if (os.path.exists(self.bindir + '/linux-2.6.14.tar.bz2')):
+ tarball = self.bindir + '/linux-2.6.14.tar.bz2'
+ else:
+ tarball = '/usr/local/src/linux-2.6.14.tar.bz2'
+ print tarball
kernel = self.job.kernel(self.srcdir, tarball)
kernel.config('')
# have to save this off, as we might use it in another run