On Thu, 2012-07-05 at 17:56 -0700, Vinson Lee wrote:
> The relative locations between bindir and srcdir have changed.

OOps, forgot to look that in the test modules. Applied to next, thanks
Vinson!

> Signed-off-by: Vinson Lee <[email protected]>
> ---
>  client/tests/ltp/ltp.py |    5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/client/tests/ltp/ltp.py b/client/tests/ltp/ltp.py
> index 7e5d6ab..1803b61 100644
> --- a/client/tests/ltp/ltp.py
> +++ b/client/tests/ltp/ltp.py
> @@ -1,4 +1,5 @@
>  import os
> +import shutil
>  from autotest.client import utils, test
>  from autotest.client.shared import error
>  
> @@ -31,7 +32,9 @@ class ltp(test.test):
>          ltpbin_dir = os.path.join(self.srcdir, 'bin')
>          os.mkdir(ltpbin_dir)
>  
> -        utils.system('cp ../scan.c pan/')   # saves having lex installed
> +        # saves having lex installed
> +        shutil.copy(os.path.join(self.bindir, 'scan.c'),
> +                    os.path.join(self.srcdir, 'pan'))
>          utils.configure('--prefix=%s' % ltpbin_dir)
>          utils.make('-j %d all' % utils.count_cpus())
>          utils.system('yes n | make SKIP_IDCHECK=1 install')


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to