Title: [234217] trunk/Tools
- Revision
- 234217
- Author
- aakash_j...@apple.com
- Date
- 2018-07-25 16:03:21 -0700 (Wed, 25 Jul 2018)
Log Message
[ews-build] Add build step ArchiveBuiltProduct
https://bugs.webkit.org/show_bug.cgi?id=188014
Reviewed by Lucas Forschler.
* BuildSlaveSupport/ews-build/steps.py:
(ArchiveBuiltProduct): Added build step ArchiveBuiltProduct.
* BuildSlaveSupport/ews-build/steps_unittest.py: Added unit-tests.
Modified Paths
Diff
Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps.py (234216 => 234217)
--- trunk/Tools/BuildSlaveSupport/ews-build/steps.py 2018-07-25 22:51:23 UTC (rev 234216)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps.py 2018-07-25 23:03:21 UTC (rev 234217)
@@ -284,3 +284,12 @@
if additionalArguments:
self.setCommand(self.command + additionalArguments)
return shell.Test.start(self)
+
+
+class ArchiveBuiltProduct(shell.ShellCommand):
+ command = ['python', 'Tools/BuildSlaveSupport/built-product-archive',
+ WithProperties('--platform=%(fullPlatform)s'), WithProperties('--%(configuration)s'), 'archive']
+ name = 'archive-built-product'
+ description = ['archiving built product']
+ descriptionDone = ['archived built product']
+ haltOnFailure = True
Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py (234216 => 234217)
--- trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py 2018-07-25 22:51:23 UTC (rev 234216)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py 2018-07-25 23:03:21 UTC (rev 234217)
@@ -745,5 +745,41 @@
return self.runStep()
+class TestArchiveBuiltProduct(BuildStepMixinAdditions, unittest.TestCase):
+ def setUp(self):
+ self.longMessage = True
+ return self.setUpBuildStep()
+
+ def tearDown(self):
+ return self.tearDownBuildStep()
+
+ def test_success(self):
+ self.setupStep(ArchiveBuiltProduct())
+ self.setProperty('fullPlatform', 'ios-simulator')
+ self.setProperty('configuration', 'release')
+ self.expectRemoteCommands(
+ ExpectShell(workdir='wkdir',
+ command=['python', 'Tools/BuildSlaveSupport/built-product-archive', '--platform=ios-simulator', '--release', 'archive'],
+ )
+ + 0,
+ )
+ self.expectOutcome(result=SUCCESS, state_string='archived built product')
+ return self.runStep()
+
+ def test_failure(self):
+ self.setupStep(ArchiveBuiltProduct())
+ self.setProperty('fullPlatform', 'mac-sierra')
+ self.setProperty('configuration', 'debug')
+ self.expectRemoteCommands(
+ ExpectShell(workdir='wkdir',
+ command=['python', 'Tools/BuildSlaveSupport/built-product-archive', '--platform=mac-sierra', '--debug', 'archive'],
+ )
+ + ExpectShell.log('stdio', stdout='Unexpected failure.')
+ + 2,
+ )
+ self.expectOutcome(result=FAILURE, state_string='archived built product (failure)')
+ return self.runStep()
+
+
if __name__ == '__main__':
unittest.main()
Modified: trunk/Tools/ChangeLog (234216 => 234217)
--- trunk/Tools/ChangeLog 2018-07-25 22:51:23 UTC (rev 234216)
+++ trunk/Tools/ChangeLog 2018-07-25 23:03:21 UTC (rev 234217)
@@ -1,3 +1,14 @@
+2018-07-25 Aakash Jain <aakash_j...@apple.com>
+
+ [ews-build] Add build step ArchiveBuiltProduct
+ https://bugs.webkit.org/show_bug.cgi?id=188014
+
+ Reviewed by Lucas Forschler.
+
+ * BuildSlaveSupport/ews-build/steps.py:
+ (ArchiveBuiltProduct): Added build step ArchiveBuiltProduct.
+ * BuildSlaveSupport/ews-build/steps_unittest.py: Added unit-tests.
+
2018-07-25 Chris Dumez <cdu...@apple.com>
navigator.userAgent may return outdated value after webView.customUserAgent is set
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes