|
Refactor the way that TestApi works so that it is actually useful.
I think this is a reasonable compromise beteween a couple of the options we
discussed. It basically boils down to two things:
* Modules now have a test_api.
* This is injected into the api's "test_api" member.
* This is also provided in a module tree to the GenTests api parameter
exactly the way that the normal module tree is provided. The recipe's DEPS
variable determines which test api's will be available to the recipe. If
the module depends on others, the other modules' test_api's will be
injected into the test_api's "m" member.
* Test data is now represented by a bunch of add-able TestData objects
* Better auto-routing of test information from the test_api's to the actual objects which consume it.
* Steps can now have default_step_data, which should be an instance of StepTestData. This allows modules to provide mock data for themselves.
* I broke up recipe_api into a bunch of (hopefully) more-logical pieces
* Expanded coverage to include module examples and test_api's
* Standardized module/recipe loading (and the path which they use for lookups).
R=agable@chromium.org
BUG= 292270, 292298
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=225021
Total comments: 6
Total comments: 1
Total comments: 19
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1444 lines, -1645 lines) |
Patch |
 |
M |
scripts/slave/annotated_run.py
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+61 lines, -87 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+74 lines, -219 lines |
0 comments
|
Download
|
 |
A + |
scripts/slave/recipe_config.py
|
View
|
1
2
3
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
D |
scripts/slave/recipe_configs_util.py
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -762 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_loader.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+255 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/android/api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/android/config.py
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/android/test_api.py
|
View
|
1
2
3
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/chromite/example.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/chromium/config.py
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/chromium_android/api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/chromium_android/config.py
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/gclient/api.py
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/gclient/config.py
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/gclient/example.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/generator_script/api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/generator_script/example.py
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+12 lines, -17 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/generator_script/test_api.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/git/example.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/json/__init__.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/json/api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+30 lines, -98 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/json/test_api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/json/util.py
|
View
|
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/path/api.py
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/path/test_api.py
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/platform/api.py
|
View
|
1
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/platform/test_api.py
|
View
|
1
2
3
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/properties/test_api.py
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/python/__init__.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/python/api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/raw_io/__init__.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_modules/raw_io/api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/step/api.py
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipe_modules/step/example.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_test_api.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+338 lines, -0 lines |
0 comments
|
Download
|
 |
A |
scripts/slave/recipe_util.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+115 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/android/android_builder.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+32 lines, -35 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/android_webview_aosp.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+35 lines, -77 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.py
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+24 lines, -82 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/linux_fail_debug.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/linux_fail_debug_git.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/linux_fail_release.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/linux_fail_release_git.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/mac_fail_debug.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/mac_fail_debug_git.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/mac_fail_release.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/mac_fail_release_git.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/warn_on_flakey.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/win_fail_debug.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/win_fail_debug_git.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/win_fail_release.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/blink_trybot.expected/win_fail_release_git.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/chromium.py
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+7 lines, -11 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/chromium.expected/fail.json
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/gatekeeper.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/gpu.py
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+11 lines, -18 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/polymer.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+17 lines, -16 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/run_presubmit.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/recipes/v8.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+19 lines, -28 lines |
0 comments
|
Download
|
 |
A + |
scripts/slave/recipes/v8.expected/mips_target.json
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
scripts/slave/unittests/recipe_configs_test.py
|
View
|
1
2
3
4
|
5 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
scripts/slave/unittests/recipes_test.py
|
View
|
1
2
3
4
5
6
7
8
9
10
|
9 chunks |
+39 lines, -122 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|