Applied, thanks! On Fri, Aug 3, 2012 at 2:38 AM, Mike Qiu <[email protected]> wrote: > Currently,srcdir has change in to client/tmp/dbt2/src,but the config > file pgpool.conf still in client/tests/dbt2/ > Now,copy the pgpool.conf from client/tests/dbt2/ to client/tmp/dbt2/ > to make the test work. > > Signed-off-by: Mike Qiu <[email protected]> > --- > client/tests/dbt2/dbt2.py | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/client/tests/dbt2/dbt2.py b/client/tests/dbt2/dbt2.py > index 9d58268..fa8489d 100644 > --- a/client/tests/dbt2/dbt2.py > +++ b/client/tests/dbt2/dbt2.py > @@ -1,4 +1,4 @@ > -import os > +import os, shutil > from autotest.client import test, utils > > > @@ -16,6 +16,9 @@ class dbt2(test.test): > def setup(self, tarball = 'dbt2-0.39.tar.bz2'): > tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) > utils.extract_tarball_to_dir(tarball, self.srcdir) > + profile_src = os.path.join(self.bindir, 'pgpool.conf') > + profile_dst = os.path.join(os.path.dirname(self.srcdir), > 'pgpool.conf') > + shutil.copyfile(profile_src, profile_dst) > self.job.setup_dep(['pgsql', 'pgpool', 'mysql']) > > # > -- > 1.7.7.6 >
-- Lucas _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
