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: Run Puppeteer install.js in its own cwd.

Anders Kaseorg9cb908682b4f
diff --git a/tools/lib/test_script.py b/tools/lib/test_script.py
index 6f104564e6b..64462ec0d07 100644
--- a/tools/lib/test_script.py
+++ b/tools/lib/test_script.py
@@ -127,7 +127,7 @@ def prepare_puppeteer_run(is_firefox: bool = False) -> None:
os.environ["PUPPETEER_DOWNLOAD_PATH"] = download_path
# This will determine if the browser will be firefox or chrome.
os.environ["PUPPETEER_PRODUCT"] = "firefox" if is_firefox else "chrome"
- subprocess.check_call(["node", "node_modules/puppeteer/install.js"])
+ subprocess.check_call(["node", "install.js"], cwd="node_modules/puppeteer")
os.makedirs("var/puppeteer", exist_ok=True)
for f in glob.glob("var/puppeteer/failure-*.png"):
os.remove(f)