[BrowserTest] Language screenshots are uploaded every 5 seconds

Change-Id: I25b7842b827b9d9366aeafb423b1884271bb39f0
This commit is contained in:
Vikas S Yaligar 2014-07-22 18:54:24 +05:30
parent a7e395f0b9
commit e0e1b38f13

View file

@ -45,6 +45,7 @@ def upload_image file_path
client = MediawikiApi::Client.new ENV["MEDIAWIKI_API_UPLOAD_URL"] client = MediawikiApi::Client.new ENV["MEDIAWIKI_API_UPLOAD_URL"]
client.log_in ENV["MEDIAWIKI_USER"], ENV["MEDIAWIKI_PASSWORD"] client.log_in ENV["MEDIAWIKI_USER"], ENV["MEDIAWIKI_PASSWORD"]
client.upload_image(file_name, file_path, file_license, true) client.upload_image(file_name, file_path, file_license, true)
sleep 5 # Restriction in bot speed: https://commons.wikimedia.org/wiki/Commons:Bots#Bot_speed
end end
def upload_images def upload_images