Title: [250616] trunk/Tools
Revision
250616
Author
[email protected]
Date
2019-10-02 11:29:12 -0700 (Wed, 02 Oct 2019)

Log Message

[ews] windows or wincairo queue should use del instead of rm command
https://bugs.webkit.org/show_bug.cgi?id=202477

Reviewed by Jonathan Bedard.

* BuildSlaveSupport/ews-build/steps.py:
(CleanUpGitIndexLock.start): Use 'del' command instead of rm for windows and wincairo.
* BuildSlaveSupport/ews-build/steps_unittest.py:
(TestCleanUpGitIndexLock.test_success_wincairo): Added unit-test.

Modified Paths

Diff

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


--- trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2019-10-02 18:19:01 UTC (rev 250615)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2019-10-02 18:29:12 UTC (rev 250616)
@@ -122,6 +122,13 @@
     def __init__(self, **kwargs):
         super(CleanUpGitIndexLock, self).__init__(timeout=2 * 60, logEnviron=False, **kwargs)
 
+    def start(self):
+        platform = self.getProperty('platform', '*')
+        platform = platform.split('-')[0]
+        if platform in ('win', 'wincairo'):
+            self.command = ['del', '.git\index.lock']
+        return shell.ShellCommand.start(self)
+
     def evaluateCommand(self, cmd):
         self.build.buildFinished(['Git issue, retrying build'], RETRY)
         return super(CleanUpGitIndexLock, self).evaluateCommand(cmd)

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


--- trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2019-10-02 18:19:01 UTC (rev 250615)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2019-10-02 18:29:12 UTC (rev 250616)
@@ -616,6 +616,20 @@
         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')
+        self.expectRemoteCommands(
+            ExpectShell(workdir='wkdir',
+                        timeout=120,
+                        logEnviron=False,
+                        command=['del', '.git\index.lock'],
+                        )
+            + 0,
+        )
+        self.expectOutcome(result=SUCCESS, state_string='Deleted .git/index.lock')
+        return self.runStep()
+
     def test_failure(self):
         self.setupStep(CleanUpGitIndexLock())
         self.expectRemoteCommands(

Modified: trunk/Tools/ChangeLog (250615 => 250616)


--- trunk/Tools/ChangeLog	2019-10-02 18:19:01 UTC (rev 250615)
+++ trunk/Tools/ChangeLog	2019-10-02 18:29:12 UTC (rev 250616)
@@ -1,3 +1,15 @@
+2019-10-02  Aakash Jain  <[email protected]>
+
+        [ews] windows or wincairo queue should use del instead of rm command
+        https://bugs.webkit.org/show_bug.cgi?id=202477
+
+        Reviewed by Jonathan Bedard.
+
+        * BuildSlaveSupport/ews-build/steps.py:
+        (CleanUpGitIndexLock.start): Use 'del' command instead of rm for windows and wincairo.
+        * BuildSlaveSupport/ews-build/steps_unittest.py:
+        (TestCleanUpGitIndexLock.test_success_wincairo): Added unit-test.
+
 2019-10-02  youenn fablet  <[email protected]>
 
         Add a test to check the case of launching two service worker processes shortly one after the other
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to