From patchwork Sun Jan 17 18:41:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 73523 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 o0HIfM6c028304 for ; Sun, 17 Jan 2010 18:41:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754436Ab0AQSlR (ORCPT ); Sun, 17 Jan 2010 13:41:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754427Ab0AQSlR (ORCPT ); Sun, 17 Jan 2010 13:41:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35940 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754354Ab0AQSlQ (ORCPT ); Sun, 17 Jan 2010 13:41:16 -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 o0HIfFVf005301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 17 Jan 2010 13:41:15 -0500 Received: from localhost.localdomain (vpn-8-173.rdu.redhat.com [10.11.8.173]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0HIfDCN030104; Sun, 17 Jan 2010 13:41:13 -0500 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] kvm_stat profiler: Format exception to string Date: Sun, 17 Jan 2010 16:41:10 -0200 Message-Id: <1263753670-10161-1-git-send-email-lmr@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/profilers/kvm_stat/kvm_stat.py b/client/profilers/kvm_stat/kvm_stat.py index 8180868..7568a03 100644 --- a/client/profilers/kvm_stat/kvm_stat.py +++ b/client/profilers/kvm_stat/kvm_stat.py @@ -25,11 +25,11 @@ class kvm_stat(profiler.profiler): try: utils.system_output("%s --batch" % self.stat_path) except error.CmdError, e: - if 'debugfs' in e: + if 'debugfs' in str(e): utils.system('mount -t debugfs debugfs /sys/kernel/debug') else: raise error.AutotestError('kvm_stat failed due to an ' - 'unknown reason: %s' % e) + 'unknown reason: %s' % str(e)) def start(self, test):