From: Jouni Malinen Date: Thu, 24 Apr 2014 09:10:17 +0000 (+0300) Subject: tests: Fix a typo on a wpas_config_file error path X-Git-Tag: hostap_2_2~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cf48c4f2e2d558130253457fea02ef4047cf8e1;p=thirdparty%2Fhostap.git tests: Fix a typo on a wpas_config_file error path In addition, print the config files in error case to the debug log. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index 57609dea4..ea569913a 100644 --- a/tests/hwsim/test_wpas_config.py +++ b/tests/hwsim/test_wpas_config.py @@ -4,6 +4,8 @@ # This software may be distributed under the terms of the BSD license. # See README for more details. +import logging +logger = logging.getLogger() import os import subprocess @@ -105,7 +107,9 @@ def test_wpas_config_file(dev): data2 = check_config(config) if data1 != data2: - raise Esception("Unexpected configuration change") + logger.debug(data1) + logger.debug(data2) + raise Exception("Unexpected configuration change") finally: subprocess.call(['sudo', 'rm', config])