When run ffsb test in x86 for the first time ,it always failed with can't open profile.cfg ,No such file.Now copy profile.cfg.sample to client/tmp/ffsb for the first time the ffsb test run
Signed-off-by: Mike Qiu <qiud...@linux.vnet.ibm.com> --- client/tests/ffsb/ffsb.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/client/tests/ffsb/ffsb.py b/client/tests/ffsb/ffsb.py index 289df62..de6e8bf 100644 --- a/client/tests/ffsb/ffsb.py +++ b/client/tests/ffsb/ffsb.py @@ -159,6 +159,12 @@ class ffsb(test.test): """ tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) utils.extract_tarball_to_dir(tarball, self.srcdir) + cmdline="cp "+self.bindir+"/profile.cfg.sample "+os.path.dirname(self.srcdir)+"/profile.cfg" + try: + self.results=utils.system(cmdline) + logging.info("Copy profile.cfg") + except error.CmdError, e: + logging.error('Failed to copy profile.cfg : %s', e) os.chdir(self.srcdir) os_dep.command('gcc') utils.configure() -- 1.7.7.6 _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest