Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: scripts/slave/recipe_modules/ios/example.py

Issue 2245303004: Interpret collected iOS Swarming task results (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/ios/example.py
diff --git a/scripts/slave/recipe_modules/ios/example.py b/scripts/slave/recipe_modules/ios/example.py
index 10dd086f9ebd086060cd9178f1f249e6c4204302..0ca321522aeda49012715062f2faa916b8c8ed7e 100644
--- a/scripts/slave/recipe_modules/ios/example.py
+++ b/scripts/slave/recipe_modules/ios/example.py
@@ -143,8 +143,171 @@ def GenTests(api):
'bootstrap swarming.swarming.py --version',
stdout=api.raw_io.output('1.2.3'),
)
+ + api.override_step_data(
+ 'fake test (fake device iOS 8.1) on Mac',
+ api.json.output({
+ 'shards': [{
+ 'exit_codes': [1],
+ 'state': 112,
+ }],
+ }),
+ retcode=1,
+ )
+ )
+
+ yield (
+ api.test('infra_failure')
+ + api.platform('mac', 64)
+ + api.properties(
+ buildername='ios',
+ buildnumber='0',
+ mastername='chromium.fake',
+ slavename='fake-vm',
+ )
+ + api.ios.make_test_build_config({
+ 'xcode version': '6.1.1',
+ 'GYP_DEFINES': {
+ },
+ 'compiler': 'xcodebuild',
+ 'configuration': 'Debug',
+ 'sdk': 'iphonesimulator8.1',
+ 'tests': [
+ {
+ 'app': 'fake test',
+ 'device type': 'fake device',
+ 'os': '8.1',
+ },
+ ],
+ })
+ + api.step_data(
+ 'bootstrap swarming.swarming.py --version',
+ stdout=api.raw_io.output('1.2.3'),
+ )
+ + api.override_step_data(
+ 'fake test (fake device iOS 8.1) on Mac',
+ api.json.output({
+ 'shards': [{
+ 'exit_codes': [2],
+ 'state': 112,
+ }],
+ }),
+ retcode=1,
+ )
+ )
+
+ yield (
+ api.test('timed_out')
+ + api.platform('mac', 64)
+ + api.properties(
+ buildername='ios',
+ buildnumber='0',
+ mastername='chromium.fake',
+ slavename='fake-vm',
+ )
+ + api.ios.make_test_build_config({
+ 'xcode version': '6.1.1',
+ 'GYP_DEFINES': {
+ },
+ 'compiler': 'xcodebuild',
+ 'configuration': 'Debug',
+ 'sdk': 'iphonesimulator8.1',
+ 'tests': [
+ {
+ 'app': 'fake test',
+ 'device type': 'fake device',
+ 'os': '8.1',
+ },
+ ],
+ })
+ api.step_data(
+ 'bootstrap swarming.swarming.py --version',
+ stdout=api.raw_io.output('1.2.3'),
+ )
+ + api.override_step_data(
+ 'fake test (fake device iOS 8.1) on Mac',
+ api.json.output({
+ 'shards': [{
+ 'state': 64,
+ }],
+ }),
+ retcode=1,
+ )
+ )
+
+ yield (
+ api.test('expired')
+ + api.platform('mac', 64)
+ + api.properties(
+ buildername='ios',
+ buildnumber='0',
+ mastername='chromium.fake',
+ slavename='fake-vm',
+ )
+ + api.ios.make_test_build_config({
+ 'xcode version': '6.1.1',
+ 'GYP_DEFINES': {
+ },
+ 'compiler': 'xcodebuild',
+ 'configuration': 'Debug',
+ 'sdk': 'iphonesimulator8.1',
+ 'tests': [
+ {
+ 'app': 'fake test',
+ 'device type': 'fake device',
+ 'os': '8.1',
+ },
+ ],
+ })
+ + api.step_data(
+ 'bootstrap swarming.swarming.py --version',
+ stdout=api.raw_io.output('1.2.3'),
+ )
+ + api.override_step_data(
+ 'fake test (fake device iOS 8.1) on Mac',
+ api.json.output({
+ 'shards': [{
+ 'state': 48,
+ }],
+ }),
+ retcode=1,
+ )
+ )
+
+ yield (
+ api.test('no_exit_code')
+ + api.platform('mac', 64)
+ + api.properties(
+ buildername='ios',
+ buildnumber='0',
+ mastername='chromium.fake',
+ slavename='fake-vm',
+ )
+ + api.ios.make_test_build_config({
+ 'xcode version': '6.1.1',
+ 'GYP_DEFINES': {
+ },
+ 'compiler': 'xcodebuild',
+ 'configuration': 'Debug',
+ 'sdk': 'iphonesimulator8.1',
+ 'tests': [
+ {
+ 'app': 'fake test',
+ 'device type': 'fake device',
+ 'os': '8.1',
+ },
+ ],
+ })
+ + api.step_data(
+ 'bootstrap swarming.swarming.py --version',
+ stdout=api.raw_io.output('1.2.3'),
+ )
+ + api.override_step_data(
'fake test (fake device iOS 8.1) on Mac',
+ api.json.output({
+ 'shards': [{
+ 'state': 112,
+ }],
+ }),
retcode=1,
)
)

Powered by Google App Engine
This is Rietveld 408576698