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_script: Reword provision warning not to assume running tests.

YashRE42b0be6a0f92a7
diff --git a/tools/lib/test_script.py b/tools/lib/test_script.py
index 59087af9167..d7beec84ada 100644
--- a/tools/lib/test_script.py
+++ b/tools/lib/test_script.py
@@ -22,10 +22,11 @@ def get_version_file() -> str:
PREAMBLE = """
-Before we run tests, we make sure your provisioning version
-is correct by looking at var/provision_version, which is at
-version {}, and we compare it to the version in source
-control (version.py), which is {}.
+Provisioning state check failed! This check compares
+`var/provision_version` (currently {}) to the version in
+source control (`version.py`), which is {}, to see if you
+likely need to provision before this command can run
+properly.
"""
@@ -36,18 +37,18 @@ def preamble(version: str) -> str:
NEED_TO_DOWNGRADE = """
-It looks like you checked out a branch that expects an older
-version of dependencies than the version you provisioned last.
-This may be ok, but it's likely that you either want to rebase
-your branch on top of upstream/main or re-provision your VM.
+The branch you are currently on expects an older version of
+dependencies than the version you provisioned last. This may
+be ok, but it's likely that you either want to rebase your
+branch on top of upstream/main or re-provision your machine.
Do this: `./tools/provision`
"""
NEED_TO_UPGRADE = """
-It looks like you checked out a branch that has added
-dependencies beyond what you last provisioned. Your command
-is likely to fail until you add dependencies by provisioning.
+The branch you are currently on has added dependencies beyond
+what you last provisioned. Your command is likely to fail
+until you add dependencies by provisioning.
Do this: `./tools/provision`
"""