run-webkit-test should look in --root directory for LayoutTestRelay
authorjmarcell@apple.com <jmarcell@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 00:39:29 +0000 (00:39 +0000)
committerjmarcell@apple.com <jmarcell@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Nov 2015 00:39:29 +0000 (00:39 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150859

Reviewed by Daniel Bates.

For iOS run-webkit-tests, use LayoutTestRelay specified by --root; otherwise find
LayoutTestRelay in the Mac build directory when --root is unspecified.

* Scripts/webkitpy/port/ios.py:
(IOSSimulatorPort.relay_path):

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

Tools/ChangeLog
Tools/Scripts/webkitpy/port/ios.py

index 7aaf2be..4927661 100644 (file)
@@ -1,3 +1,16 @@
+2015-11-03  Jason Marcell  <jmarcell@apple.com>
+
+        run-webkit-test should look in --root directory for LayoutTestRelay
+        https://bugs.webkit.org/show_bug.cgi?id=150859
+
+        Reviewed by Daniel Bates.
+
+        For iOS run-webkit-tests, use LayoutTestRelay specified by --root; otherwise find
+        LayoutTestRelay in the Mac build directory when --root is unspecified.
+
+        * Scripts/webkitpy/port/ios.py:
+        (IOSSimulatorPort.relay_path):
+
 2015-11-03  Alexey Proskuryakov  <ap@apple.com>
 
         build.webkit.org/dashboard should use ISO dates in Trac URLs
index c704892..870f239 100644 (file)
@@ -123,8 +123,12 @@ class IOSSimulatorPort(Port):
     @property
     @memoized
     def relay_path(self):
-        mac_config = port_config.Config(self._executive, self._filesystem, 'mac')
-        return self._filesystem.join(mac_config.build_directory(self.get_option('configuration')), self.relay_name)
+        if self._root_was_set:
+            path = self._filesystem.abspath(self.get_option('root'))
+        else:
+            mac_config = port_config.Config(self._executive, self._filesystem, 'mac')
+            path = mac_config.build_directory(self.get_option('configuration'))
+        return self._filesystem.join(path, self.relay_name)
 
     def default_timeout_ms(self):
         if self.get_option('guard_malloc'):