aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-06-30 08:29:59 -0400
committerJack Lloyd <[email protected]>2018-06-30 08:29:59 -0400
commit62c9bf4d367026a53ee2bdcd4a87f2358533d2e5 (patch)
tree8c31b83e063a031d84d8f393dfb683a825bccbf5 /src
parentff75fa84b2027b76a403645362bd76fcaac5da29 (diff)
Lint fixes
Diffstat (limited to 'src')
-rwxr-xr-xsrc/scripts/test_cli.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/scripts/test_cli.py b/src/scripts/test_cli.py
index b61b8dfcd..b17e4ee5f 100755
--- a/src/scripts/test_cli.py
+++ b/src/scripts/test_cli.py
@@ -86,13 +86,10 @@ def test_cli(cmd, cmd_options, expected_output=None, cmd_input=None):
def check_for_command(cmd):
cmdline = [CLI_PATH, 'has_command', cmd]
- proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- (stdout, stderr) = proc.communicate()
+ proc = subprocess.Popen(cmdline)
+ proc.communicate()
- if proc.returncode == 0:
- return True
- else:
- return False
+ return proc.returncode == 0
def cli_help_tests():
output = test_cli("help", None, None)
@@ -222,7 +219,7 @@ wGf/MGbgPebBLmozAANENw==
shutil.rmtree(tmp_dir)
def cli_psk_db_tests():
- if check_for_command("psk_db") == False:
+ if not check_for_command("psk_db"):
return
tmp_dir = tempfile.mkdtemp(prefix='botan_cli')
@@ -245,7 +242,7 @@ def cli_psk_db_tests():
def cli_compress_tests():
- if check_for_command("compress") == False:
+ if not check_for_command("compress"):
return
tmp_dir = tempfile.mkdtemp(prefix='botan_cli')