Title: [247305] trunk/Tools
Revision
247305
Author
[email protected]
Date
2019-07-10 09:10:59 -0700 (Wed, 10 Jul 2019)

Log Message

[ews-build] Explicitly use perl or python while invoking scripts
https://bugs.webkit.org/show_bug.cgi?id=199669

Reviewed by Jonathan Bedard.

* BuildSlaveSupport/ews-build/steps.py: Explicitly added perl or python while invoking scripts.
* BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests accordingly.

Modified Paths

Diff

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


--- trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2019-07-10 16:09:36 UTC (rev 247304)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps.py	2019-07-10 16:10:59 UTC (rev 247305)
@@ -134,7 +134,7 @@
     descriptionDone = ['Cleaned working directory']
     flunkOnFailure = True
     haltOnFailure = True
-    command = ['Tools/Scripts/clean-webkit']
+    command = ['python', 'Tools/Scripts/clean-webkit']
 
     def __init__(self, **kwargs):
         super(CleanWorkingDirectory, self).__init__(logEnviron=False, **kwargs)
@@ -146,7 +146,7 @@
     descriptionDone = ['Applied patch']
     flunkOnFailure = True
     haltOnFailure = True
-    command = ['Tools/Scripts/svn-apply', '--force', '.buildbot-diff']
+    command = ['perl', 'Tools/Scripts/svn-apply', '--force', '.buildbot-diff']
 
     def __init__(self, **kwargs):
         super(ApplyPatch, self).__init__(timeout=5 * 60, logEnviron=False, **kwargs)
@@ -479,7 +479,7 @@
     descriptionDone = ['check-webkit-style']
     flunkOnFailure = True
     failedTestsFormatString = '%d style error%s'
-    command = ['Tools/Scripts/check-webkit-style']
+    command = ['python', 'Tools/Scripts/check-webkit-style']
 
     def countFailures(self, cmd):
         log_text = self.log_observer.getStdout() + self.log_observer.getStderr()
@@ -497,7 +497,7 @@
     flunkOnFailure = True
     jsonFileName = 'bindings_test_results.json'
     logfiles = {'json': jsonFileName}
-    command = ['Tools/Scripts/run-bindings-tests', '--json-output={0}'.format(jsonFileName)]
+    command = ['python', 'Tools/Scripts/run-bindings-tests', '--json-output={0}'.format(jsonFileName)]
 
     def __init__(self, **kwargs):
         super(RunBindingsTests, self).__init__(timeout=5 * 60, logEnviron=False, **kwargs)
@@ -544,7 +544,7 @@
     description = ['webkitperl-tests running']
     descriptionDone = ['webkitperl-tests']
     flunkOnFailure = True
-    command = ['Tools/Scripts/test-webkitperl']
+    command = ['perl', 'Tools/Scripts/test-webkitperl']
 
     def __init__(self, **kwargs):
         super(RunWebKitPerlTests, self).__init__(timeout=2 * 60, logEnviron=False, **kwargs)
@@ -557,7 +557,7 @@
     flunkOnFailure = True
     jsonFileName = 'webkitpy_test_results.json'
     logfiles = {'json': jsonFileName}
-    command = ['Tools/Scripts/test-webkitpy', '--json-output={0}'.format(jsonFileName)]
+    command = ['python', 'Tools/Scripts/test-webkitpy', '--json-output={0}'.format(jsonFileName)]
 
     def __init__(self, **kwargs):
         super(RunWebKitPyTests, self).__init__(timeout=2 * 60, logEnviron=False, **kwargs)

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


--- trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2019-07-10 16:09:36 UTC (rev 247304)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py	2019-07-10 16:10:59 UTC (rev 247305)
@@ -211,7 +211,7 @@
 
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
-                        command=['Tools/Scripts/check-webkit-style'],
+                        command=['python', 'Tools/Scripts/check-webkit-style'],
                         )
             + 0,
         )
@@ -226,7 +226,7 @@
 
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
-                        command=['Tools/Scripts/check-webkit-style'],
+                        command=['python', 'Tools/Scripts/check-webkit-style'],
                         )
             + 2,
         )
@@ -241,7 +241,7 @@
 
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
-                        command=['Tools/Scripts/check-webkit-style'],
+                        command=['python', 'Tools/Scripts/check-webkit-style'],
                         )
             + ExpectShell.log('stdio', stdout='''ERROR: Source/WebCore/layout/FloatingContext.cpp:36:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
 ERROR: Source/WebCore/layout/FormattingContext.h:94:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
@@ -263,7 +263,7 @@
 
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
-                        command=['Tools/Scripts/check-webkit-style'],
+                        command=['python', 'Tools/Scripts/check-webkit-style'],
                         )
             + ExpectShell.log('stdio', stdout='Total errors found: 0 in 6 files')
             + 0,
@@ -279,7 +279,7 @@
 
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
-                        command=['Tools/Scripts/check-webkit-style'],
+                        command=['python', 'Tools/Scripts/check-webkit-style'],
                         )
             + ExpectShell.log('stdio', stdout='Total errors found: 0 in 0 files')
             + 2,
@@ -303,7 +303,7 @@
             ExpectShell(workdir='wkdir',
                         timeout=300,
                         logEnviron=False,
-                        command=['Tools/Scripts/run-bindings-tests', '--json-output={0}'.format(self.jsonFileName)],
+                        command=['python', 'Tools/Scripts/run-bindings-tests', '--json-output={0}'.format(self.jsonFileName)],
                         logfiles={'json': self.jsonFileName},
                         )
             + 0,
@@ -317,7 +317,7 @@
             ExpectShell(workdir='wkdir',
                         timeout=300,
                         logEnviron=False,
-                        command=['Tools/Scripts/run-bindings-tests', '--json-output={0}'.format(self.jsonFileName)],
+                        command=['python', 'Tools/Scripts/run-bindings-tests', '--json-output={0}'.format(self.jsonFileName)],
                         logfiles={'json': self.jsonFileName},
                         )
             + ExpectShell.log('stdio', stdout='FAIL: (JS) JSTestInterface.cpp')
@@ -340,7 +340,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['Tools/Scripts/test-webkitperl'],
+                        command=['perl', 'Tools/Scripts/test-webkitperl'],
                         timeout=120,
                         )
             + 0,
@@ -353,7 +353,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['Tools/Scripts/test-webkitperl'],
+                        command=['perl', 'Tools/Scripts/test-webkitperl'],
                         timeout=120,
                         )
             + ExpectShell.log('stdio', stdout='''Failed tests:  1-3, 5-7, 9, 11-13
@@ -380,7 +380,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['Tools/Scripts/test-webkitpy', '--json-output={0}'.format(self.jsonFileName)],
+                        command=['python', 'Tools/Scripts/test-webkitpy', '--json-output={0}'.format(self.jsonFileName)],
                         logfiles={'json': self.jsonFileName},
                         timeout=120,
                         )
@@ -394,7 +394,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['Tools/Scripts/test-webkitpy', '--json-output={0}'.format(self.jsonFileName)],
+                        command=['python', 'Tools/Scripts/test-webkitpy', '--json-output={0}'.format(self.jsonFileName)],
                         logfiles={'json': self.jsonFileName},
                         timeout=120,
                         )
@@ -1047,7 +1047,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['Tools/Scripts/clean-webkit'],
+                        command=['python', 'Tools/Scripts/clean-webkit'],
                         )
             + 0,
         )
@@ -1059,7 +1059,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['Tools/Scripts/clean-webkit'],
+                        command=['python', 'Tools/Scripts/clean-webkit'],
                         )
             + ExpectShell.log('stdio', stdout='Unexpected failure.')
             + 2,
@@ -1083,7 +1083,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['Tools/Scripts/clean-webkit'],
+                        command=['python', 'Tools/Scripts/clean-webkit'],
                         )
             + 0,
         )
@@ -1097,7 +1097,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['Tools/Scripts/clean-webkit'],
+                        command=['python', 'Tools/Scripts/clean-webkit'],
                         )
             + ExpectShell.log('stdio', stdout='Unexpected failure.')
             + 2,

Modified: trunk/Tools/ChangeLog (247304 => 247305)


--- trunk/Tools/ChangeLog	2019-07-10 16:09:36 UTC (rev 247304)
+++ trunk/Tools/ChangeLog	2019-07-10 16:10:59 UTC (rev 247305)
@@ -1,3 +1,13 @@
+2019-07-10  Aakash Jain  <[email protected]>
+
+        [ews-build] Explicitly use perl or python while invoking scripts
+        https://bugs.webkit.org/show_bug.cgi?id=199669
+
+        Reviewed by Jonathan Bedard.
+
+        * BuildSlaveSupport/ews-build/steps.py: Explicitly added perl or python while invoking scripts.
+        * BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests accordingly.
+
 2019-07-10  Guillaume Emont  <[email protected]>
 
         Run tests on mips EWS
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to