[ews-app] configure localhost as BUILDBOT_SERVER_HOST in testing mode
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Apr 2019 20:34:11 +0000 (20:34 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Apr 2019 20:34:11 +0000 (20:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196620

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-app/ews/config.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243896 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-app/ews/config.py
Tools/ChangeLog

index f1b3448..c03753d 100644 (file)
 
 import os
 
 
 import os
 
+is_test_mode_enabled = os.getenv('EWS_PRODUCTION') is None
+
 BUG_SERVER_HOST = 'bugs.webkit.org'
 BUG_SERVER_URL = 'https://{}/'.format(BUG_SERVER_HOST)
 PATCH_FOLDER = '/tmp/'
 
 BUG_SERVER_HOST = 'bugs.webkit.org'
 BUG_SERVER_URL = 'https://{}/'.format(BUG_SERVER_HOST)
 PATCH_FOLDER = '/tmp/'
 
-BUILDBOT_SERVER_HOST = 'ews-build.webkit.org'
+if is_test_mode_enabled:
+    BUILDBOT_SERVER_HOST = 'localhost'
+else:
+    BUILDBOT_SERVER_HOST = 'ews-build.webkit.org'
 BUILDBOT_SERVER_PORT = '5555'
 BUILDBOT_TRY_USERNAME = os.getenv('BUILDBOT_TRY_USERNAME', 'sampleuser')
 BUILDBOT_TRY_PASSWORD = os.getenv('BUILDBOT_TRY_PASSWORD', 'samplepass')
 BUILDBOT_SERVER_PORT = '5555'
 BUILDBOT_TRY_USERNAME = os.getenv('BUILDBOT_TRY_USERNAME', 'sampleuser')
 BUILDBOT_TRY_PASSWORD = os.getenv('BUILDBOT_TRY_PASSWORD', 'samplepass')
index 0f95b38..b23ca3f 100644 (file)
@@ -1,3 +1,12 @@
+2019-04-04  Aakash Jain  <aakash_jain@apple.com>
+
+        [ews-app] configure localhost as BUILDBOT_SERVER_HOST in testing mode
+        https://bugs.webkit.org/show_bug.cgi?id=196620
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-app/ews/config.py:
+
 2019-04-04  Per Arne Vollan  <pvollan@apple.com>
 
         [Win] DumpRenderTreeWatchDog.py is not checked into source
 2019-04-04  Per Arne Vollan  <pvollan@apple.com>
 
         [Win] DumpRenderTreeWatchDog.py is not checked into source