From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Habkost Subject: [KVM-AUTOTEST PATCH 5/5] kvm_config: inform filename and line number on error message Date: Thu, 6 Jan 2011 14:12:36 -0200 Message-ID: <1294330356-17043-6-git-send-email-ehabkost@redhat.com> References: <1294330356-17043-1-git-send-email-ehabkost@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: autotest@test.kernel.org, kvm@vger.kernel.org Return-path: In-Reply-To: <1294330356-17043-1-git-send-email-ehabkost@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org From: Eduardo Habkost Include the filename and line number on the "Using variants in this context is not allowed" exception error message. Signed-off-by: Eduardo Habkost --- client/tests/kvm/kvm_config.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_config.py index c206743..c4d9a01 100755 --- a/client/tests/kvm/kvm_config.py +++ b/client/tests/kvm/kvm_config.py @@ -297,7 +297,7 @@ class config: # (inside an exception or inside subvariants) if restricted: e_msg = "Using variants in this context is not allowed" - raise error.AutotestError(e_msg) + cr.raise_error(e_msg) if self.debug and not restricted: _debug_print(indented_line, "Entering variants block (%d dicts in " -- 1.7.3.2