aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-10 18:30:22 -0500
committerJack Lloyd <[email protected]>2018-03-10 18:30:22 -0500
commit425b1fd10b6eda9ce89a948ede9935d8c6604dc0 (patch)
tree8d86a91138aa7ad0f9ce4ff35b5231c269d66151 /src/scripts
parent7f6b26e934b9a6015d9bf1fa236d8409ae59cf9f (diff)
Lint fixes [ci skip]
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/test_cli.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scripts/test_cli.py b/src/scripts/test_cli.py
index c3fe43c1a..48f2e9b43 100755
--- a/src/scripts/test_cli.py
+++ b/src/scripts/test_cli.py
@@ -47,7 +47,7 @@ def test_cli(cmd, cmd_options, expected_output=None, cmd_input=None):
fixed_drbg_seed = "802" * 32
- if type(cmd_options) == str:
+ if isinstance(cmd_options, str):
cmd_options = cmd_options.split(' ')
drbg_options = ['--rng-type=drbg', '--drbg-seed=' + fixed_drbg_seed]
@@ -163,7 +163,10 @@ wGf/MGbgPebBLmozAANENw==
"Signature is invalid",
valid_sig.replace("W", "Z"))
- test_cli("gen_self_signed", "%s CA --ca --country=VT --dns=ca.example --hash=SHA-384 --output=%s" % (priv_key, ca_cert), "")
+ test_cli("gen_self_signed",
+ [priv_key, "CA", "--ca", "--country=VT",
+ "--dns=ca.example", "--hash=SHA-384", "--output="+ca_cert],
+ "")
test_cli("cert_verify", ca_cert, "Certificate did not validate - Cannot establish trust")