]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix a typo on a wpas_config_file error path
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 24 Apr 2014 09:10:17 +0000 (12:10 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 24 Apr 2014 09:15:32 +0000 (12:15 +0300)
In addition, print the config files in error case to the debug log.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_wpas_config.py

index 57609dea4f8fc18040852b880933930211546a6c..ea569913a806a999fef6fdb2f00f8528057fb9f2 100644 (file)
@@ -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])