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 <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-04-24 12:10:17 +03:00 committed by Jouni Malinen
parent d0df643735
commit 3cf48c4f2e

View file

@ -4,6 +4,8 @@
# This software may be distributed under the terms of the BSD license. # This software may be distributed under the terms of the BSD license.
# See README for more details. # See README for more details.
import logging
logger = logging.getLogger()
import os import os
import subprocess import subprocess
@ -105,7 +107,9 @@ def test_wpas_config_file(dev):
data2 = check_config(config) data2 = check_config(config)
if data1 != data2: if data1 != data2:
raise Esception("Unexpected configuration change") logger.debug(data1)
logger.debug(data2)
raise Exception("Unexpected configuration change")
finally: finally:
subprocess.call(['sudo', 'rm', config]) subprocess.call(['sudo', 'rm', config])