Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test-run-dev: Fix log file opening.

Anders Kaseorg2bd635853bcd
diff --git a/tools/test-run-dev b/tools/test-run-dev
index 204ca83a429..9be38c698a7 100755
--- a/tools/test-run-dev
+++ b/tools/test-run-dev
@@ -17,13 +17,13 @@ TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
def start_server(logfile_name: str) -> Tuple[bool, str]:
failure = True
- key = "Quit the server with CTRL-C."
+ key = "Quit the server with CONTROL-C."
datalog = []
- with open(logfile_name, "r", buffering=0) as logfile:
+ with open(logfile_name, "rb", buffering=0) as logfile:
for i in range(200):
time.sleep(0.5)
print(f"{i}. Polling run-dev...")
- new_data = logfile.read()
+ new_data = logfile.read().decode()
if new_data:
datalog.append(new_data)