[EWS] Print disk space usage for windows bots
https://bugs.webkit.org/show_bug.cgi?id=206421
Reviewed by Jonathan Bedard.
* BuildSlaveSupport/ews-build/steps.py:
(PrintConfiguration): Windows bot use cygwin, so df command works.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Tools/BuildSlaveSupport/ews-build/steps.py b/Tools/BuildSlaveSupport/ews-build/steps.py
index 4bfbdf7..87de284 100644
--- a/Tools/BuildSlaveSupport/ews-build/steps.py
+++ b/Tools/BuildSlaveSupport/ews-build/steps.py
@@ -1885,7 +1885,7 @@
command_list_generic = [['hostname']]
command_list_apple = [['df', '-hl'], ['date'], ['sw_vers'], ['xcodebuild', '-sdk', '-version'], ['uptime']]
command_list_linux = [['df', '-hl'], ['date'], ['uname', '-a'], ['uptime']]
- command_list_win = [[]] # TODO: add windows specific commands here
+ command_list_win = [['df', '-hl']]
def __init__(self, **kwargs):
super(PrintConfiguration, self).__init__(timeout=60, **kwargs)
@@ -1902,7 +1902,7 @@
command_list.extend(self.command_list_apple)
elif platform in ('gtk', 'wpe', 'jsc-only'):
command_list.extend(self.command_list_linux)
- elif platform in ('win', 'wincairo'):
+ elif platform in ('win'):
command_list.extend(self.command_list_win)
for command in command_list:
diff --git a/Tools/BuildSlaveSupport/ews-build/steps_unittest.py b/Tools/BuildSlaveSupport/ews-build/steps_unittest.py
index 3aecca5..93c8407 100644
--- a/Tools/BuildSlaveSupport/ews-build/steps_unittest.py
+++ b/Tools/BuildSlaveSupport/ews-build/steps_unittest.py
@@ -2775,6 +2775,7 @@
self.expectRemoteCommands(
ExpectShell(command=['hostname'], workdir='wkdir', timeout=60, logEnviron=False) + 0,
+ ExpectShell(command=['df', '-hl'], workdir='wkdir', timeout=60, logEnviron=False) + 0,
)
self.expectOutcome(result=SUCCESS, state_string='Printed configuration')
return self.runStep()
diff --git a/Tools/ChangeLog b/Tools/ChangeLog
index d23988e..8bfc26b 100644
--- a/Tools/ChangeLog
+++ b/Tools/ChangeLog
@@ -1,5 +1,15 @@
2020-01-17 Aakash Jain <aakash_jain@apple.com>
+ [EWS] Print disk space usage for windows bots
+ https://bugs.webkit.org/show_bug.cgi?id=206421
+
+ Reviewed by Jonathan Bedard.
+
+ * BuildSlaveSupport/ews-build/steps.py:
+ (PrintConfiguration): Windows bot use cygwin, so df command works.
+
+2020-01-17 Aakash Jain <aakash_jain@apple.com>
+
[ews] Perform validation of patch before running layout-tests on Windows
https://bugs.webkit.org/show_bug.cgi?id=206424