From: Toshi MARUYAMA Date: Wed, 25 Sep 2019 13:14:05 +0000 (+0000) Subject: do not delete Chrome downloaded files on Linux X-Git-Tag: 4.1.0~549 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15d8e32cbcf90be1aa75bc71b89383b0dc14f5fd;p=redmine.git do not delete Chrome downloaded files on Linux https://github.com/SeleniumHQ/selenium/issues/5292 git-svn-id: http://svn.redmine.org/redmine/trunk@18531 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 8b552e3b7..44d2c83db 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -59,7 +59,8 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase end def clear_downloaded_files - FileUtils.rm downloaded_files + # https://github.com/SeleniumHQ/selenium/issues/5292 + FileUtils.rm downloaded_files if Redmine::Platform.mswin? end def downloaded_files(filename='*')