From patchwork Wed Dec 23 16:32:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 69569 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBNGYJCF026369 for ; Wed, 23 Dec 2009 16:34:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756511AbZLWQeR (ORCPT ); Wed, 23 Dec 2009 11:34:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756512AbZLWQeQ (ORCPT ); Wed, 23 Dec 2009 11:34:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32769 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756360AbZLWQeP (ORCPT ); Wed, 23 Dec 2009 11:34:15 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBNGYEcr007015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Dec 2009 11:34:14 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBNGYDSC027071; Wed, 23 Dec 2009 11:34:14 -0500 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id nBNGYAMP023359; Wed, 23 Dec 2009 11:34:12 -0500 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 2/2] KVM test: warn about corrupt PPM files after each test Date: Wed, 23 Dec 2009 18:32:36 +0200 Message-Id: <1261585956-5956-2-git-send-email-mgoldish@redhat.com> In-Reply-To: <1261585956-5956-1-git-send-email-mgoldish@redhat.com> References: <1261585956-5956-1-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 @@ def postprocess(test, params, env): """ 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"