qemu.test: Not create test file when it is not necessary

Not create test file when it is not necessary

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>