[build.webkit.org] unit-tests fail when passwords.json is missing
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2018 20:15:02 +0000 (20:15 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2018 20:15:02 +0000 (20:15 +0000)
commit1c5475a84df1d32271cb3b1dca35863db5aa8438
treed90974d2a8facfdca1ef975c6dcdc65be49d685f
parent214b929c7b63e8e949029f29c438387244244a57
[build.webkit.org] unit-tests fail when passwords.json is missing
https://bugs.webkit.org/show_bug.cgi?id=180390

Reviewed by Carlos Alberto Lopez Perez.

* BuildSlaveSupport/build.webkit.org-config/loadConfig.py:
(loadBuilderConfig): Add support for test_mode. Load mock passwords in test_mode.
* BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
(BuildBotConfigLoader._add_dependant_modules_to_sys_modules): Call _add_webkitpy_to_sys_path as well.
(BuildBotConfigLoader._mock_open): Deleted.
(BuildBotConfigLoader.load_config): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/BuildSlaveSupport/build.webkit.org-config/loadConfig.py
Tools/BuildSlaveSupport/build.webkit.org-config/steps_unittest.py
Tools/ChangeLog