mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	test_script: Don’t crash on second Puppeteer run.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						 Anders Kaseorg
						Anders Kaseorg
					
				
			
			
				
	
			
			
			
						parent
						
							faabc0f6ad
						
					
				
				
					commit
					0affc7ac6f
				
			| @@ -123,7 +123,7 @@ def find_js_test_files(test_dir: str, files: Iterable[str]) -> List[str]: | |||||||
| def prepare_puppeteer_run(is_firefox: bool = False) -> None: | def prepare_puppeteer_run(is_firefox: bool = False) -> None: | ||||||
|     os.chdir(ZULIP_PATH) |     os.chdir(ZULIP_PATH) | ||||||
|     download_path = platformdirs.user_cache_dir("zulip/puppeteer-download") |     download_path = platformdirs.user_cache_dir("zulip/puppeteer-download") | ||||||
|     os.makedirs(download_path) |     os.makedirs(download_path, exist_ok=True) | ||||||
|     os.environ["PUPPETEER_DOWNLOAD_PATH"] = download_path |     os.environ["PUPPETEER_DOWNLOAD_PATH"] = download_path | ||||||
|     # This will determine if the browser will be firefox or chrome. |     # This will determine if the browser will be firefox or chrome. | ||||||
|     os.environ["PUPPETEER_PRODUCT"] = "firefox" if is_firefox else "chrome" |     os.environ["PUPPETEER_PRODUCT"] = "firefox" if is_firefox else "chrome" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user