From patchwork Tue Jan 11 13:13:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 471441 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0BDDH3a007903 for ; Tue, 11 Jan 2011 13:13:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755859Ab1AKNNO (ORCPT ); Tue, 11 Jan 2011 08:13:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3058 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754009Ab1AKNNN (ORCPT ); Tue, 11 Jan 2011 08:13:13 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0BDDCqf015347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Jan 2011 08:13:12 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0BDDCFS025990; Tue, 11 Jan 2011 08:13:12 -0500 Received: from qu0061.eng.lab.tlv.redhat.com ([10.35.16.61]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p0BDD9nN025030; Tue, 11 Jan 2011 08:13:10 -0500 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 01/26] error.py: clear context when setting base_context Date: Tue, 11 Jan 2011 15:13:13 +0200 Message-Id: <1294751618-21631-1-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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.6 (demeter1.kernel.org [140.211.167.41]); Tue, 11 Jan 2011 13:13:17 +0000 (UTC) diff --git a/client/common_lib/error.py b/client/common_lib/error.py index c3479bb..76ccc77 100644 --- a/client/common_lib/error.py +++ b/client/common_lib/error.py @@ -94,6 +94,7 @@ def base_context(s="", log=None): @param log: A logging function to pass the context message to. If None, no function will be called. """ + ctx.contexts[-1] = "" ctx.contexts[-2] = s if s and log: log("Context: %s" % get_context())