On Wed, Jun 13, 2012 at 5:34 PM, Chris Evich <cev...@redhat.com> wrote:
> make_clean checks for the word 'example' in the src directory path

Ok, good catch, I was wondering why I was getting the patch files from
the performance test erased every time... applied to master and
rebased next accordingly...

> Signed-off-by: Chris Evich <cev...@redhat.com>
> ---
>  client/tools/make_clean |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/client/tools/make_clean b/client/tools/make_clean
> index a74699e..146fa1b 100755
> --- a/client/tools/make_clean
> +++ b/client/tools/make_clean
> @@ -18,7 +18,7 @@ def purge_src(top_dir):
>             continue
>         ret = os.system('grep -q "preserve_srcdir = " ' + py)
>         src_path = os.path.abspath(os.path.join('tests', dir, 'src'))
> -        if not os.path.exists(src_path):
> +        if not os.path.exists(src_path) or not src_path.count('example'):
>             continue
>         if ret:                 # This should have a replaceable src dir
>             cmd = 'rm -rf ' + src_path
> --
> 1.7.1
>
> _______________________________________________
> Autotest mailing list
> Autotest@test.kernel.org
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest



-- 
Lucas
_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to