Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test-backend: Enable single-threaded profiling when thread count is unspecified.
Akshate7f4700d7669
diff --git a/tools/test-backend b/tools/test-backendindex 61aa604cbfc..7557b4f858e 100755--- a/tools/test-backend+++ b/tools/test-backend@@ -395,7 +395,12 @@ def main() -> None:# dynamic resolution of the test runner type with the django-stubs mypy plugin.TestRunner = cast("Type[Runner]", get_runner(settings))- parallel = default_parallel if options.processes is None else options.processes+ if options.processes:+ parallel = options.processes+ elif options.profile:+ parallel = 1+ else:+ parallel = default_parallelif parallel > 1:print(f"-- Running tests in parallel mode with {parallel} processes.", flush=True)else: