Title: [250736] trunk/Tools
Revision
250736
Author
[email protected]
Date
2019-10-04 12:28:07 -0700 (Fri, 04 Oct 2019)

Log Message

[ews] wincairo queue should use del instead of rm command (follow-up fix)
https://bugs.webkit.org/show_bug.cgi?id=202477

Reviewed by Jonathan Bedard.

* BuildSlaveSupport/ews-build/steps.py:
(CleanUpGitIndexLock.start): Use regular 'rm' command on windows as it use cygwin.
* BuildSlaveSupport/ews-build/steps_unittest.py:
(TestCleanUpGitIndexLock.test_success_windows): Added unit-test for windows.

Modified Paths

Diff

Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps.py (250735 => 250736)


--- trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2019-10-04 19:07:22 UTC (rev 250735)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2019-10-04 19:28:07 UTC (rev 250736)
@@ -124,8 +124,7 @@
 
     def start(self):
         platform = self.getProperty('platform', '*')
-        platform = platform.split('-')[0]
-        if platform in ('win', 'wincairo'):
+        if platform == 'wincairo':
             self.command = ['del', '.git\index.lock']
         return shell.ShellCommand.start(self)
 

Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py (250735 => 250736)


--- trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2019-10-04 19:07:22 UTC (rev 250735)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2019-10-04 19:28:07 UTC (rev 250736)
@@ -616,6 +616,20 @@
         self.expectOutcome(result=SUCCESS, state_string='Deleted .git/index.lock')
         return self.runStep()
 
+    def test_success_windows(self):
+        self.setupStep(CleanUpGitIndexLock())
+        self.setProperty('platform', 'win')
+        self.expectRemoteCommands(
+            ExpectShell(workdir='wkdir',
+                        timeout=120,
+                        logEnviron=False,
+                        command=['rm', '-f', '.git/index.lock'],
+                        )
+            + 0,
+        )
+        self.expectOutcome(result=SUCCESS, state_string='Deleted .git/index.lock')
+        return self.runStep()
+
     def test_success_wincairo(self):
         self.setupStep(CleanUpGitIndexLock())
         self.setProperty('platform', 'wincairo')

Modified: trunk/Tools/ChangeLog (250735 => 250736)


--- trunk/Tools/ChangeLog	2019-10-04 19:07:22 UTC (rev 250735)
+++ trunk/Tools/ChangeLog	2019-10-04 19:28:07 UTC (rev 250736)
@@ -1,3 +1,15 @@
+2019-10-03  Aakash Jain  <[email protected]>
+
+        [ews] wincairo queue should use del instead of rm command (follow-up fix)
+        https://bugs.webkit.org/show_bug.cgi?id=202477
+
+        Reviewed by Jonathan Bedard.
+
+        * BuildSlaveSupport/ews-build/steps.py:
+        (CleanUpGitIndexLock.start): Use regular 'rm' command on windows as it use cygwin.
+        * BuildSlaveSupport/ews-build/steps_unittest.py:
+        (TestCleanUpGitIndexLock.test_success_windows): Added unit-test for windows.
+
 2019-10-04  Jiewen Tan  <[email protected]>
 
         [WebAuthn] Implement _WKWebAuthenticationPanel SPI
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to