mirror of https://github.com/zulip/zulip.git
test_script: Correct glob for puppeteer failure screenshots.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
5fc5aa8625
commit
e0032223c8
|
@ -124,5 +124,5 @@ def prepare_puppeteer_run(is_firefox: bool = False) -> None:
|
||||||
os.environ["PUPPETEER_PRODUCT"] = "firefox" if is_firefox else "chrome"
|
os.environ["PUPPETEER_PRODUCT"] = "firefox" if is_firefox else "chrome"
|
||||||
subprocess.check_call(["node", "node_modules/puppeteer/install.js"])
|
subprocess.check_call(["node", "node_modules/puppeteer/install.js"])
|
||||||
os.makedirs("var/puppeteer", exist_ok=True)
|
os.makedirs("var/puppeteer", exist_ok=True)
|
||||||
for f in glob.glob("var/puppeteer/puppeteer-failure*.png"):
|
for f in glob.glob("var/puppeteer/failure-*.png"):
|
||||||
os.remove(f)
|
os.remove(f)
|
||||||
|
|
Loading…
Reference in New Issue