aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorDaniel Latypov <[email protected]>2020-12-02 19:08:21 +0000
committerShuah Khan <[email protected]>2021-02-08 22:33:32 +0000
commitcfd607e43da4a20753744f134e201310262b827a (patch)
tree6d54478b251218123d18a0cae109e90a6b40f314 /tools/perf/scripts/python/check-perf-trace.py
parentLinux 5.11-rc7 (diff)
downloadkernel-cfd607e43da4a20753744f134e201310262b827a.tar.gz
kernel-cfd607e43da4a20753744f134e201310262b827a.zip
kunit: tool: fix unit test cleanup handling
* Stop leaking file objects. * Use self.addCleanup() to ensure we call cleanup functions even if setUp() fails. * use mock.patch.stopall instead of more error-prone manual approach Signed-off-by: Daniel Latypov <[email protected]> Reviewed-by: David Gow <[email protected]> Tested-by: Brendan Higgins <[email protected]> Acked-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions