perf tests: Move attr.py temp dir cleanup into finally section
authorJiri Olsa <jolsa@redhat.com>
Thu, 8 Nov 2012 16:01:01 +0000 (17:01 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Nov 2012 16:16:19 +0000 (13:16 -0300)
commitd4fcf0a8b96b23a245a21065c9424e09c8080819
treefb40366204b58719fa9a39f7077929a80984d4c6
parent580e338d7e9dc4947cba2e1021e78e76ebe0869e
perf tests: Move attr.py temp dir cleanup into finally section

Currently if there's 'Unsup' exception raised, we do not clean up the
temp directory. Solving this by adding 'finally' to make the cleanup in
any case.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1352390461-15404-1-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/attr.py