tests: Replace tabs with spaces in python indentation
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
99fdc0413b
commit
e0d9f5fc15
3 changed files with 17 additions and 17 deletions
|
@ -4187,13 +4187,13 @@ def ocsp_resp_ca_signed(reqfile, outfile, status):
|
||||||
return
|
return
|
||||||
arg = ["openssl", "ocsp",
|
arg = ["openssl", "ocsp",
|
||||||
"-index", "auth_serv/index%s.txt" % status,
|
"-index", "auth_serv/index%s.txt" % status,
|
||||||
"-rsigner", "auth_serv/ca.pem",
|
"-rsigner", "auth_serv/ca.pem",
|
||||||
"-rkey", "auth_serv/ca-key.pem",
|
"-rkey", "auth_serv/ca-key.pem",
|
||||||
"-CA", "auth_serv/ca.pem",
|
"-CA", "auth_serv/ca.pem",
|
||||||
"-ndays", "7",
|
"-ndays", "7",
|
||||||
"-reqin", reqfile,
|
"-reqin", reqfile,
|
||||||
"-resp_no_certs",
|
"-resp_no_certs",
|
||||||
"-respout", outfile]
|
"-respout", outfile]
|
||||||
run_openssl(arg)
|
run_openssl(arg)
|
||||||
if not os.path.exists(outfile):
|
if not os.path.exists(outfile):
|
||||||
raise HwsimSkip("No OCSP response available")
|
raise HwsimSkip("No OCSP response available")
|
||||||
|
@ -4204,12 +4204,12 @@ def ocsp_resp_server_signed(reqfile, outfile):
|
||||||
return
|
return
|
||||||
arg = ["openssl", "ocsp",
|
arg = ["openssl", "ocsp",
|
||||||
"-index", "auth_serv/index.txt",
|
"-index", "auth_serv/index.txt",
|
||||||
"-rsigner", "auth_serv/server.pem",
|
"-rsigner", "auth_serv/server.pem",
|
||||||
"-rkey", "auth_serv/server.key",
|
"-rkey", "auth_serv/server.key",
|
||||||
"-CA", "auth_serv/ca.pem",
|
"-CA", "auth_serv/ca.pem",
|
||||||
"-ndays", "7",
|
"-ndays", "7",
|
||||||
"-reqin", reqfile,
|
"-reqin", reqfile,
|
||||||
"-respout", outfile]
|
"-respout", outfile]
|
||||||
run_openssl(arg)
|
run_openssl(arg)
|
||||||
if not os.path.exists(outfile):
|
if not os.path.exists(outfile):
|
||||||
raise HwsimSkip("No OCSP response available")
|
raise HwsimSkip("No OCSP response available")
|
||||||
|
|
|
@ -387,7 +387,7 @@ def test_ap_ft_vlan_2(dev, apdev):
|
||||||
hapd1 = hostapd.add_ap(apdev[1]['ifname'], params)
|
hapd1 = hostapd.add_ap(apdev[1]['ifname'], params)
|
||||||
|
|
||||||
run_roams(dev[0], apdev, hapd0, hapd1, ssid, passphrase, conndev="brvlan1",
|
run_roams(dev[0], apdev, hapd0, hapd1, ssid, passphrase, conndev="brvlan1",
|
||||||
force_initial_conn_to_first_ap=True)
|
force_initial_conn_to_first_ap=True)
|
||||||
if "[WPA2-FT/PSK-CCMP]" not in dev[0].request("SCAN_RESULTS"):
|
if "[WPA2-FT/PSK-CCMP]" not in dev[0].request("SCAN_RESULTS"):
|
||||||
raise Exception("Scan results missing RSN element info")
|
raise Exception("Scan results missing RSN element info")
|
||||||
|
|
||||||
|
|
|
@ -494,9 +494,9 @@ def test_wpas_config_file_set_global(dev):
|
||||||
"pkcs11_module_path", "openssl_ciphers", "pcsc_reader",
|
"pkcs11_module_path", "openssl_ciphers", "pcsc_reader",
|
||||||
"pcsc_pin", "driver_param", "manufacturer", "model_name",
|
"pcsc_pin", "driver_param", "manufacturer", "model_name",
|
||||||
"model_number", "serial_number", "config_methods",
|
"model_number", "serial_number", "config_methods",
|
||||||
"p2p_ssid_postfix", "autoscan", "ext_password_backend",
|
"p2p_ssid_postfix", "autoscan", "ext_password_backend",
|
||||||
"osu_dir", "wowlan_triggers", "fst_group_id",
|
"osu_dir", "wowlan_triggers", "fst_group_id",
|
||||||
"sched_scan_plans", "non_pref_chan"]
|
"sched_scan_plans", "non_pref_chan"]
|
||||||
for field in fields:
|
for field in fields:
|
||||||
if "FAIL" not in wpas.request('SET %s hello\nmodel_name=foobar' % field):
|
if "FAIL" not in wpas.request('SET %s hello\nmodel_name=foobar' % field):
|
||||||
raise Exception("Invalid %s value accepted" % field)
|
raise Exception("Invalid %s value accepted" % field)
|
||||||
|
|
Loading…
Reference in a new issue