mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
ruff: Fix PLW1510 subprocess.run
without explicit check
argument.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit c43629a222
)
This commit is contained in:
committed by
Alex Vandiver
parent
4ac849d006
commit
47e2b07316
@@ -41,6 +41,7 @@ skip_backups = subprocess.run(
|
||||
["crudini", "--get", "/etc/zulip/zulip.conf", "postgresql", "skip_backups"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
)
|
||||
if skip_backups.returncode == 0 and skip_backups.stdout.strip().lower() in [
|
||||
1,
|
||||
|
@@ -399,7 +399,9 @@ has_puppet_changes = True
|
||||
if not args.skip_puppet and IS_SERVER_UP:
|
||||
logging.info("Pre-checking for puppet changes...")
|
||||
try_puppet = subprocess.run(
|
||||
["./scripts/zulip-puppet-apply", "--noop", "--force"], stdout=subprocess.DEVNULL
|
||||
["./scripts/zulip-puppet-apply", "--noop", "--force"],
|
||||
stdout=subprocess.DEVNULL,
|
||||
check=False,
|
||||
)
|
||||
if try_puppet.returncode == 0:
|
||||
if minimal_change:
|
||||
|
@@ -185,6 +185,7 @@ if has_application_server():
|
||||
uwsgi_status = subprocess.run(
|
||||
["supervisorctl", "status", "zulip-django"],
|
||||
stdout=subprocess.DEVNULL,
|
||||
check=False,
|
||||
)
|
||||
if uwsgi_status.returncode == 0:
|
||||
logging.info("Starting rolling restart of django server")
|
||||
|
@@ -180,7 +180,7 @@ Proposed {BOLDRED}diff{ENDC} for {CYAN}{fn}{ENDC}:
|
||||
""",
|
||||
flush=True,
|
||||
)
|
||||
subprocess.run(["diff", fn, "-"], input=phtml, text=True)
|
||||
subprocess.run(["diff", fn, "-"], input=phtml, text=True, check=False)
|
||||
print(
|
||||
f"""
|
||||
---
|
||||
|
@@ -1490,6 +1490,7 @@ class TestScriptMTA(ZulipTestCase):
|
||||
input=mail,
|
||||
stdout=subprocess.PIPE,
|
||||
text=True,
|
||||
check=False,
|
||||
)
|
||||
self.assertEqual(
|
||||
p.stdout,
|
||||
|
Reference in New Issue
Block a user