[Qt][WK2] Refactor on Qt5 Layout tests' structure
[WebKit-https.git] / Tools / Scripts / webkitpy / layout_tests / port / qt.py
index 5e77841..5fc60a5 100644 (file)
@@ -47,6 +47,9 @@ class QtPort(WebKitPort):
     ALL_VERSIONS = ['linux', 'win', 'mac']
     port_name = "qt"
 
+    def _wk2_port_name(self):
+        return "qt-5.0-wk2"
+
     def _port_flag_for_scripts(self):
         return "--qt"
 
@@ -123,10 +126,10 @@ class QtPort(WebKitPort):
             search_paths.add('qt-4.8')
         elif version:
             search_paths.add('qt-5.0')
-        if self.get_option('webkit_test_runner'):
-            search_paths.update(['qt-wk2', 'wk2'])
-        else:
-            search_paths.add('qt-wk1')
+            if self.get_option('webkit_test_runner'):
+                search_paths.update(['qt-5.0-wk2', 'wk2'])
+            else:
+                search_paths.add('qt-5.0-wk1')
         return search_paths
 
     def _runtime_feature_list(self):