From 78d27c65010328ee2caf49f0332d13266e7f4879 Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Thu, 16 Feb 2017 14:44:33 +0100 Subject: [PATCH] cputest: Fix name of the file removed by cpu-parse.sh We want to remove the file created by json <<<"$data" >$fname.json in case it was empty. Signed-off-by: Jiri Denemark --- tests/cputestdata/cpu-parse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cputestdata/cpu-parse.sh b/tests/cputestdata/cpu-parse.sh index 1b5ab4a5aa..c3b5ef1066 100755 --- a/tests/cputestdata/cpu-parse.sh +++ b/tests/cputestdata/cpu-parse.sh @@ -53,5 +53,5 @@ json <<<"$data" >$fname.json if [[ -s $fname.json ]]; then echo $fname.json else - rm $fname.new.json + rm $fname.json fi