On Mon, Dec 07, 2015 at 07:53:14PM +0100, Michael Petlan wrote:

SNIP

> 
> diff --git a/tools/perf/testsuite/base_annotate/cleanup.sh 
> b/tools/perf/testsuite/base_annotate/cleanup.sh
> new file mode 100755
> index 0000000..616873a
> --- /dev/null
> +++ b/tools/perf/testsuite/base_annotate/cleanup.sh
> @@ -0,0 +1,22 @@
> +#!/bin/bash
> +
> +#
> +#    cleanup.sh of perf annotate test
> +#    Author: Michael Petlan <mpet...@redhat.com>
> +#
> +#
> +
> +# include working environment
> +. ../common/init.sh
> +. ./settings.sh
> +
> +THIS_TEST_NAME=`basename $0 .sh`
> +
> +make -s -C examples clean
> +
> +find . -name \*.log | xargs -r rm
> +find . -name \*.err | xargs -r rm
> +rm -f perf.data
> +
> +print_results 0 0 "clean-up logs"

could the test work over some temporary directory,
so it has its data stored in there?

it helps with paralel tests running and
is little bit cleaner solution

thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to