tests: hwsim: macsec: correct configuration reference

You need CONFIG_DRIVER_MACSEC_LINUX, not CONFIG_MACSEC_LINUX,
so fix this in the messages.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2019-02-06 10:43:49 +01:00 committed by Jouni Malinen
parent c4e90da6d0
commit 3281c1590d

View File

@ -167,7 +167,7 @@ def add_wpas_interfaces(count=2):
wpa.append(wpas) wpa.append(wpas)
except Exception as e: except Exception as e:
if "Failed to add a dynamic wpa_supplicant interface" in str(e): if "Failed to add a dynamic wpa_supplicant interface" in str(e):
raise HwsimSkip("macsec supported (wpa_supplicant CONFIG_MACSEC, CONFIG_MACSEC_LINUX; kernel CONFIG_MACSEC)") raise HwsimSkip("macsec supported (wpa_supplicant CONFIG_MACSEC, CONFIG_DRIVER_MACSEC_LINUX; kernel CONFIG_MACSEC)")
raise raise
return wpa return wpa
@ -575,7 +575,7 @@ def run_macsec_psk_ns(dev, apdev, params):
try: try:
subprocess.check_call(arg) subprocess.check_call(arg)
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
raise HwsimSkip("macsec supported (wpa_supplicant CONFIG_MACSEC, CONFIG_MACSEC_LINUX; kernel CONFIG_MACSEC)") raise HwsimSkip("macsec supported (wpa_supplicant CONFIG_MACSEC, CONFIG_DRIVER_MACSEC_LINUX; kernel CONFIG_MACSEC)")
if os.path.exists("wpa_supplicant-macsec2"): if os.path.exists("wpa_supplicant-macsec2"):
logger.info("Use alternative wpa_supplicant binary for one of the macsec devices") logger.info("Use alternative wpa_supplicant binary for one of the macsec devices")