From: Eduardo Habkost <ehabkost@xxxxxxxxxxx> Include the filename and line number on the "Using variants in this context is not allowed" exception error message. Signed-off-by: Eduardo Habkost <ehabkost@xxxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html