perf tests: Fix trace+probe_vfs_getname.sh /tmp cleanup
authorJames Clark <james.clark@arm.com>
Tue, 21 Sep 2021 13:10:08 +0000 (14:10 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Oct 2021 14:17:38 +0000 (11:17 -0300)
commit39c534889e8c988867693ed8407ee0284c936941
tree5b98539fc41eb850828038c7040d403ef393e292
parentcf95f85e27bb5001f1cd8fc2ee9d3ee13e580ab1
perf tests: Fix trace+probe_vfs_getname.sh /tmp cleanup

The temp file is only cleaned up if the test is not skipped, so delay
making it until after the skip so it doesn't get left behind in /tmp.

Signed-off-by: James Clark <james.clark@arm.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Leo Yan <leo.yan@linaro.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20210921131009.390810-2-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/trace+probe_vfs_getname.sh