[PATCH -next 2/2] selftests/intel_pstate: do cleanup at exit

Zhao Gongyi posted 2 patches 3 years, 4 months ago
[PATCH -next 2/2] selftests/intel_pstate: do cleanup at exit
Posted by Zhao Gongyi 3 years, 4 months ago
Remove the tmp files before the test exit.

Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
---
 tools/testing/selftests/intel_pstate/run.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh
index ee78c61cccb9..3e187e54af16 100755
--- a/tools/testing/selftests/intel_pstate/run.sh
+++ b/tools/testing/selftests/intel_pstate/run.sh
@@ -140,5 +140,6 @@ do
 done < /tmp/governor

 rm -f /tmp/governor
+rm -f /tmp/result\.*

 exit 0
--
2.17.1