From patchwork Tue Jun 8 08:02:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Enthus X-Patchwork-Id: 104898 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5882U1A012444 for ; Tue, 8 Jun 2010 08:02:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751657Ab0FHIC1 (ORCPT ); Tue, 8 Jun 2010 04:02:27 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:37020 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751380Ab0FHIC0 (ORCPT ); Tue, 8 Jun 2010 04:02:26 -0400 Received: by vws17 with SMTP id 17so1178809vws.19 for ; Tue, 08 Jun 2010 01:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=N8NfrBtIQL8oM/iHnhCIlIvNIrAjtfUoTU6a9eVqXNI=; b=RZ1ltQYwNMyeO8CGVtfv3CRfGSFYOs5/gFzJDka2+hnAG00u64V/u8FE2ybnEWDywQ yc8QY3S5viEMUHRA1s/s8A3C8dT5R8LOmffkAni0KiUSjA6JcOOYryS0X8xht7V3nShx tFQ+6uxUz8JuZWq7J3lv4wpjULf8PADOLRJqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=vRBAhw2WvwPuV+dnjbKSWP4YG03GjBO5UNDxy+7Ia4VM3JU/GtnG4oQm8N6zcVG7t3 F9xtXXQQg/rFSV1JgdxvPyiTUOj1SuAqj9SR+k6DVjkWZNMvj/PI0a0bPPsq8SVDz06N JU05sKRlnyocz8Q/F62SiVLi70wnPKlRdWMy8= Received: by 10.224.87.149 with SMTP id w21mr9162986qal.18.1275984145533; Tue, 08 Jun 2010 01:02:25 -0700 (PDT) Received: from localhost ([60.247.97.98]) by mx.google.com with ESMTPS id 2sm8697950qwi.49.2010.06.08.01.02.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Jun 2010 01:02:24 -0700 (PDT) Date: Tue, 8 Jun 2010 16:02:24 +0800 From: Marc Enthus To: lmr@redhat.com, mgoldish@redhat.com, autotest@test.kernel.org Cc: kvm@vger.kernel.org Subject: [PATCH] KVM-test: kvm.py: Code style fix Message-ID: <20100608080224.GA20396@t4.rh> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 08 Jun 2010 08:02:30 +0000 (UTC) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index f3ce4d6..0080b15 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -516,7 +516,7 @@ class VM: pa_type) return False - elif pa_type and pa_type != "no": + elif pa_type is not None and pa_type != "no": logging.warn("Unsupported pci_assignable type: %s", pa_type) # Make qemu command