Changeset 244548 in webkit
- Timestamp:
- Apr 23, 2019 10:53:26 AM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/ews-build/steps_unittest.py
r244533 r244548 912 912 913 913 self.expectOutcome(result=FAILURE, state_string='Failed to upload built product') 914 return self.runStep() 915 916 917 class TestDownloadBuiltProduct(BuildStepMixinAdditions, unittest.TestCase): 918 def setUp(self): 919 self.longMessage = True 920 return self.setUpBuildStep() 921 922 def tearDown(self): 923 return self.tearDownBuildStep() 924 925 def test_success(self): 926 self.setupStep(DownloadBuiltProduct()) 927 self.setProperty('platform', 'ios') 928 self.setProperty('fullPlatform', 'ios-simulator-12') 929 self.setProperty('configuration', 'release') 930 self.setProperty('architecture', 'x86_64') 931 self.setProperty('patch_id', '1234') 932 self.expectRemoteCommands( 933 ExpectShell(workdir='wkdir', 934 command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--platform=ios', '--release', 'https://ews-build.webkit.org/archives/ios-simulator-12-x86_64-release/1234.zip'], 935 ) 936 + 0, 937 ) 938 self.expectOutcome(result=SUCCESS, state_string='Downloaded built product') 939 return self.runStep() 940 941 def test_failure(self): 942 self.setupStep(DownloadBuiltProduct()) 943 self.setProperty('platform', 'mac') 944 self.setProperty('fullPlatform', 'mac-sierra') 945 self.setProperty('configuration', 'debug') 946 self.setProperty('architecture', 'x86_64') 947 self.setProperty('patch_id', '123456') 948 self.expectRemoteCommands( 949 ExpectShell(workdir='wkdir', 950 command=['python', 'Tools/BuildSlaveSupport/download-built-product', '--platform=mac', '--debug', 'https://ews-build.webkit.org/archives/mac-sierra-x86_64-debug/123456.zip'], 951 ) 952 + ExpectShell.log('stdio', stdout='Unexpected failure.') 953 + 2, 954 ) 955 self.expectOutcome(result=FAILURE, state_string='Downloaded built product (failure)') 914 956 return self.runStep() 915 957 -
trunk/Tools/ChangeLog
r244547 r244548 1 2019-04-23 Aakash Jain <aakash_jain@apple.com> 2 3 [ews-build] Add unit tests for DownloadBuiltProduct 4 https://bugs.webkit.org/show_bug.cgi?id=197193 5 6 Reviewed by Lucas Forschler. 7 8 * BuildSlaveSupport/ews-build/steps_unittest.py: 9 (TestDownloadBuiltProduct): 10 (TestDownloadBuiltProduct.setUp): 11 (TestDownloadBuiltProduct.tearDown): 12 (TestDownloadBuiltProduct.test_success): 13 (TestDownloadBuiltProduct.test_failure): 14 1 15 2019-04-23 Aakash Jain <aakash_jain@apple.com> 2 16
Note: See TracChangeset
for help on using the changeset viewer.