]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cputest: Fix name of the file removed by cpu-parse.sh
authorJiri Denemark <jdenemar@redhat.com>
Thu, 16 Feb 2017 13:44:33 +0000 (14:44 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 17 Feb 2017 10:19:29 +0000 (11:19 +0100)
We want to remove the file created by

    json <<<"$data" >$fname.json

in case it was empty.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/cputestdata/cpu-parse.sh

index 1b5ab4a5aa3763c5e2f3bd71ce11b4e40924957d..c3b5ef106665f46ad2a3cc3f4326ed1df1aada5b 100755 (executable)
@@ -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