KVM test: warn about corrupt PPM files after each test
Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4053 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py
index 5bae2bd..4e45c76 100644
--- a/client/tests/kvm/kvm_preprocessing.py
+++ b/client/tests/kvm/kvm_preprocessing.py
@@ -270,6 +270,11 @@
"""
process(test, params, env, postprocess_image, postprocess_vm)
+ # Warn about corrupt PPM files
+ for f in glob.glob(os.path.join(test.debugdir, "*.ppm")):
+ if not ppm_utils.image_verify_ppm_file(f):
+ logging.warn("Found corrupt PPM file: %s", f)
+
# Should we convert PPM files to PNG format?
if params.get("convert_ppm_files_to_png") == "yes":
logging.debug("'convert_ppm_files_to_png' specified; converting PPM"