libv8 5.6.326.50.0beta1 → 5.7.492.65.0beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +1 -0
  4. data/Rakefile +8 -1
  5. data/ext/libv8/arch.rb +5 -5
  6. data/ext/libv8/builder.rb +9 -5
  7. data/lib/libv8/version.rb +1 -1
  8. data/patches/0001-Build-a-standalone-static-library.patch +2 -2
  9. data/patches/0002-Don-t-compile-unnecessary-stuff.patch +11 -7
  10. data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +2 -2
  11. data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +2 -2
  12. data/vendor/depot_tools/.gitignore +1 -0
  13. data/vendor/depot_tools/cbuildbot +1 -1
  14. data/vendor/depot_tools/chrome_set_ver +1 -1
  15. data/vendor/depot_tools/cipd_client_version +1 -1
  16. data/vendor/depot_tools/cit.py +1 -1
  17. data/vendor/depot_tools/cpplint.py +2 -1
  18. data/vendor/depot_tools/cros +1 -1
  19. data/vendor/depot_tools/cros_sdk +1 -1
  20. data/vendor/depot_tools/gclient.py +3 -2
  21. data/vendor/depot_tools/gerrit_util.py +99 -55
  22. data/vendor/depot_tools/git_cache.py +22 -6
  23. data/vendor/depot_tools/git_cl.py +532 -92
  24. data/vendor/depot_tools/git_common.py +3 -1
  25. data/vendor/depot_tools/infra/config/recipes.cfg +21 -8
  26. data/vendor/depot_tools/man/html/depot_tools.html +9 -1
  27. data/vendor/depot_tools/man/html/git-cl.html +1025 -0
  28. data/vendor/depot_tools/man/html/git-squash-branch.html +2 -2
  29. data/vendor/depot_tools/man/html/git-upstream-diff.html +1 -1
  30. data/vendor/depot_tools/man/man1/git-cl.1 +193 -0
  31. data/vendor/depot_tools/man/man1/git-squash-branch.1 +4 -4
  32. data/vendor/depot_tools/man/man1/git-upstream-diff.1 +3 -3
  33. data/vendor/depot_tools/man/man7/depot_tools.7 +8 -3
  34. data/vendor/depot_tools/man/src/_git-cl_desc.helper.txt +1 -0
  35. data/vendor/depot_tools/man/src/git-cl.txt +116 -0
  36. data/vendor/depot_tools/my_activity.py +226 -50
  37. data/vendor/depot_tools/owners.py +50 -25
  38. data/vendor/depot_tools/presubmit_canned_checks.py +3 -0
  39. data/vendor/depot_tools/presubmit_support.py +19 -0
  40. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/OWNERS +0 -0
  41. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/__init__.py +0 -0
  42. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/api.py +14 -11
  43. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/apply_gerrit_ref.json +1 -0
  44. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic.json +1 -0
  45. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic_output_manifest.json +1 -0
  46. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic_with_branch_heads.json +1 -0
  47. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/buildbot.json +1 -0
  48. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/clobber.json +1 -0
  49. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +1 -0
  50. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/gerrit_no_reset.json +1 -0
  51. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/no_shallow.json +1 -0
  52. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/reset_root_solution_revision.json +1 -0
  53. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange.json +1 -0
  54. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2.json +0 -0
  55. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_buildbot.json +1 -0
  56. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_json.json +1 -0
  57. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_json_win.json +1 -0
  58. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob.json +1 -0
  59. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail.json +1 -0
  60. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail_patch.json +1 -0
  61. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail_patch_download.json +2 -0
  62. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_gerrit_angle.json +1 -0
  63. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +1 -0
  64. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_v8.json +1 -0
  65. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_v8_head_by_default.json +1 -0
  66. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.py +0 -0
  67. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/__init__.py +0 -0
  68. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/apply_gerrit.py +0 -0
  69. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/bot_update.py +2 -2
  70. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/test_api.py +0 -0
  71. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/__init__.py +0 -0
  72. data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +412 -0
  73. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/basic.json +8 -2
  74. data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/basic_pkg.json +405 -0
  75. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/describe-failed.json +0 -0
  76. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/describe-many-instances.json +8 -2
  77. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/mac64.json +8 -2
  78. data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_file.json +289 -0
  79. data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_mode.json +289 -0
  80. data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_verfile.json +289 -0
  81. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/win64.json +21 -15
  82. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.py +101 -20
  83. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/test_api.py +0 -0
  84. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/__init__.py +0 -0
  85. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/api.py +0 -0
  86. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.expected/basic.json +0 -0
  87. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.expected/win.json +0 -0
  88. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.py +0 -0
  89. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/__init__.py +0 -0
  90. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/api.py +12 -10
  91. data/vendor/depot_tools/recipes/recipe_modules/gclient/bundle_extra_paths.txt +4 -0
  92. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/config.py +0 -0
  93. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/basic.json +9 -0
  94. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/buildbot.json +9 -0
  95. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/revision.json +9 -0
  96. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/tryserver.json +9 -0
  97. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.py +0 -0
  98. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/test_api.py +0 -0
  99. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/__init__.py +1 -0
  100. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/api.py +11 -10
  101. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/example.expected/basic.json +2 -0
  102. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/example.py +0 -0
  103. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/test_api.py +0 -0
  104. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/__init__.py +0 -0
  105. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/api.py +8 -7
  106. data/vendor/depot_tools/recipes/recipe_modules/git/bundle_extra_paths.txt +28 -0
  107. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic.json +17 -0
  108. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_branch.json +17 -0
  109. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_file_name.json +17 -0
  110. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_hash.json +17 -0
  111. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_ref.json +17 -0
  112. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_submodule_update_force.json +17 -0
  113. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/can_fail_build.json +12 -0
  114. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/cannot_fail_build.json +17 -0
  115. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/cat-file_test.json +19 -0
  116. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_delta.json +19 -0
  117. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_failed.json +17 -0
  118. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_with_bad_output.json +17 -0
  119. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_with_bad_output_fails_build.json +7 -0
  120. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/curl_trace_file.json +17 -0
  121. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/git-cache-checkout.json +20 -0
  122. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/platform_win.json +18 -0
  123. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/rebase_failed.json +17 -0
  124. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/remote_not_origin.json +17 -0
  125. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/set_got_revision.json +17 -0
  126. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.py +0 -0
  127. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/resources/git_setup.py +0 -0
  128. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/test_api.py +0 -0
  129. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/__init__.py +0 -0
  130. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/api.py +0 -0
  131. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/config.py +0 -0
  132. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/example.expected/basic.json +0 -0
  133. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/example.py +0 -0
  134. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/__init__.py +0 -0
  135. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/api.py +0 -0
  136. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/example.expected/basic.json +11 -0
  137. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/example.py +0 -0
  138. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/resources/gsutil_smart_retry.py +0 -0
  139. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/__init__.py +0 -0
  140. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/api.py +0 -0
  141. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/example.expected/basic.json +1 -2
  142. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +15 -0
  143. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +15 -0
  144. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +15 -0
  145. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_linux.json +15 -0
  146. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_mac.json +15 -0
  147. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_win.json +15 -0
  148. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +15 -0
  149. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +15 -0
  150. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +15 -0
  151. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/example.py +2 -3
  152. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/path_config.py +5 -3
  153. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/__init__.py +1 -0
  154. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/api.py +7 -6
  155. data/vendor/depot_tools/recipes/recipe_modules/presubmit/bundle_extra_paths.txt +30 -0
  156. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/example.expected/basic.json +0 -0
  157. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/example.py +0 -0
  158. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/__init__.py +0 -0
  159. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/api.py +0 -0
  160. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.expected/basic.json +0 -0
  161. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.expected/buildbot.json +0 -0
  162. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.py +0 -0
  163. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/__init__.py +0 -0
  164. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/api.py +0 -0
  165. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/basic_tags.json +0 -0
  166. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/set_failure_hash_with_no_steps.json +0 -0
  167. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_gerrit_patch.json +1 -0
  168. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_gerrit_patch_deprecated.json +1 -0
  169. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_git_patch.json +4 -0
  170. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_git_patch_luci.json +0 -0
  171. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_rietveld_patch.json +4 -2
  172. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_rietveld_patch_new.json +4 -2
  173. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_wrong_patch.json +2 -0
  174. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_wrong_patch_new.json +2 -0
  175. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.py +0 -0
  176. data/vendor/depot_tools/{recipes.py → recipes/recipes.py} +57 -81
  177. data/vendor/depot_tools/roll_dep.py +13 -5
  178. data/vendor/depot_tools/scm.py +7 -0
  179. data/vendor/depot_tools/third_party/upload.py +4 -0
  180. data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +3 -39
  181. data/vendor/depot_tools/win_toolchain/package_from_installed.py +159 -114
  182. metadata +144 -133
  183. data/vendor/depot_tools/recipe_modules/cipd/api.py +0 -219
  184. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +0 -16
  185. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +0 -16
  186. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +0 -16
  187. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +0 -16
  188. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +0 -16
  189. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +0 -16
  190. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json +0 -16
  191. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json +0 -16
  192. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json +0 -16
@@ -0,0 +1,289 @@
1
+ [
2
+ {
3
+ "cmd": [
4
+ "cipd",
5
+ "ensure",
6
+ "-root",
7
+ "[START_DIR]/packages",
8
+ "-ensure-file",
9
+ "public/package/linux-amd64 7f751b2237df2fdf3c1405be00590fefffbaea2d",
10
+ "-json-output",
11
+ "/path/to/tmp/json",
12
+ "-service-account-json",
13
+ "/creds/service_accounts/service-account-cipd-builder.json"
14
+ ],
15
+ "name": "ensure_installed",
16
+ "~followup_annotations": [
17
+ "@@@STEP_LOG_LINE@json.output@{@@@",
18
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
19
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
20
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"7f751b2237df2fdf3c1405be00590fefffbaea2d\", @@@",
21
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"public/package/linux-amd64\"@@@",
22
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
23
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
24
+ "@@@STEP_LOG_LINE@json.output@}@@@",
25
+ "@@@STEP_LOG_END@json.output@@@"
26
+ ]
27
+ },
28
+ {
29
+ "cmd": [
30
+ "cipd",
31
+ "search",
32
+ "public/package/linux-amd64",
33
+ "-tag",
34
+ "git_revision:40-chars-long-hash",
35
+ "-json-output",
36
+ "/path/to/tmp/json",
37
+ "-service-account-json",
38
+ "/creds/service_accounts/service-account-cipd-builder.json"
39
+ ],
40
+ "name": "cipd search public/package/linux-amd64 git_revision:40-chars-long-hash",
41
+ "~followup_annotations": [
42
+ "@@@STEP_LOG_LINE@json.output@{@@@",
43
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
44
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
45
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
46
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"public/package/linux-amd64\"@@@",
47
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
48
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
49
+ "@@@STEP_LOG_LINE@json.output@}@@@",
50
+ "@@@STEP_LOG_END@json.output@@@"
51
+ ]
52
+ },
53
+ {
54
+ "cmd": [
55
+ "cipd",
56
+ "describe",
57
+ "public/package/linux-amd64",
58
+ "-version",
59
+ "40-chars-fake-of-the-package-instance_id",
60
+ "-json-output",
61
+ "/path/to/tmp/json",
62
+ "-service-account-json",
63
+ "/creds/service_accounts/service-account-cipd-builder.json"
64
+ ],
65
+ "name": "cipd describe public/package/linux-amd64",
66
+ "~followup_annotations": [
67
+ "@@@STEP_LOG_LINE@json.output@{@@@",
68
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
69
+ "@@@STEP_LOG_LINE@json.output@ \"pin\": {@@@",
70
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
71
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"public/package/linux-amd64\"@@@",
72
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
73
+ "@@@STEP_LOG_LINE@json.output@ \"refs\": [@@@",
74
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
75
+ "@@@STEP_LOG_LINE@json.output@ \"modified_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
76
+ "@@@STEP_LOG_LINE@json.output@ \"modified_ts\": 1446574210, @@@",
77
+ "@@@STEP_LOG_LINE@json.output@ \"ref\": \"latest\"@@@",
78
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
79
+ "@@@STEP_LOG_LINE@json.output@ ], @@@",
80
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
81
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
82
+ "@@@STEP_LOG_LINE@json.output@ \"tags\": [@@@",
83
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
84
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
85
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
86
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"buildbot_build:some.waterfall/builder/1234\"@@@",
87
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
88
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
89
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
90
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
91
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"git_repository:https://chromium.googlesource.com/some/repo\"@@@",
92
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
93
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
94
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
95
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
96
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"git_revision:397a2597cdc237f3026e6143b683be4b9ab60540\"@@@",
97
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
98
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
99
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
100
+ "@@@STEP_LOG_LINE@json.output@}@@@",
101
+ "@@@STEP_LOG_END@json.output@@@"
102
+ ]
103
+ },
104
+ {
105
+ "cmd": [
106
+ "cipd",
107
+ "ensure",
108
+ "-root",
109
+ "[START_DIR]/packages",
110
+ "-ensure-file",
111
+ "private/package/linux-amd64 latest\npublic/package/linux-amd64 7f751b2237df2fdf3c1405be00590fefffbaea2d",
112
+ "-json-output",
113
+ "/path/to/tmp/json",
114
+ "-service-account-json",
115
+ "fake-credentials.json"
116
+ ],
117
+ "name": "ensure_installed (2)",
118
+ "~followup_annotations": [
119
+ "@@@STEP_LOG_LINE@json.output@{@@@",
120
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
121
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
122
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-latest----------\", @@@",
123
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"private/package/linux-amd64\"@@@",
124
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
125
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
126
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"7f751b2237df2fdf3c1405be00590fefffbaea2d\", @@@",
127
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"public/package/linux-amd64\"@@@",
128
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
129
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
130
+ "@@@STEP_LOG_LINE@json.output@}@@@",
131
+ "@@@STEP_LOG_END@json.output@@@"
132
+ ]
133
+ },
134
+ {
135
+ "cmd": [
136
+ "cipd",
137
+ "search",
138
+ "private/package/linux-amd64",
139
+ "-tag",
140
+ "key:value",
141
+ "-json-output",
142
+ "/path/to/tmp/json",
143
+ "-service-account-json",
144
+ "fake-credentials.json"
145
+ ],
146
+ "name": "cipd search private/package/linux-amd64 key:value",
147
+ "~followup_annotations": [
148
+ "@@@STEP_LOG_LINE@json.output@{@@@",
149
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
150
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
151
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
152
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"private/package/linux-amd64\"@@@",
153
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
154
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
155
+ "@@@STEP_LOG_LINE@json.output@}@@@",
156
+ "@@@STEP_LOG_END@json.output@@@"
157
+ ]
158
+ },
159
+ {
160
+ "cmd": [
161
+ "cipd",
162
+ "describe",
163
+ "private/package/linux-amd64",
164
+ "-version",
165
+ "40-chars-fake-of-the-package-instance_id",
166
+ "-json-output",
167
+ "/path/to/tmp/json",
168
+ "-service-account-json",
169
+ "fake-credentials.json"
170
+ ],
171
+ "name": "cipd describe private/package/linux-amd64",
172
+ "~followup_annotations": [
173
+ "@@@STEP_LOG_LINE@json.output@{@@@",
174
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
175
+ "@@@STEP_LOG_LINE@json.output@ \"pin\": {@@@",
176
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
177
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"private/package/linux-amd64\"@@@",
178
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
179
+ "@@@STEP_LOG_LINE@json.output@ \"refs\": [@@@",
180
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
181
+ "@@@STEP_LOG_LINE@json.output@ \"modified_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
182
+ "@@@STEP_LOG_LINE@json.output@ \"modified_ts\": 1446574210, @@@",
183
+ "@@@STEP_LOG_LINE@json.output@ \"ref\": \"latest\"@@@",
184
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
185
+ "@@@STEP_LOG_LINE@json.output@ ], @@@",
186
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
187
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
188
+ "@@@STEP_LOG_LINE@json.output@ \"tags\": [@@@",
189
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
190
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
191
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
192
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"custom:tagged\"@@@",
193
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
194
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
195
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
196
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
197
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"key:value\"@@@",
198
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
199
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
200
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
201
+ "@@@STEP_LOG_LINE@json.output@}@@@",
202
+ "@@@STEP_LOG_END@json.output@@@"
203
+ ]
204
+ },
205
+ {
206
+ "cmd": [
207
+ "cipd",
208
+ "pkg-build",
209
+ "-in",
210
+ "fake-input-dir",
211
+ "-name",
212
+ "infra/fake-package",
213
+ "-out",
214
+ "fake-package-path",
215
+ "-json-output",
216
+ "/path/to/tmp/json"
217
+ ],
218
+ "name": "build fake-package",
219
+ "~followup_annotations": [
220
+ "@@@STEP_LOG_LINE@json.output@{@@@",
221
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
222
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
223
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/fake-package\"@@@",
224
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
225
+ "@@@STEP_LOG_LINE@json.output@}@@@",
226
+ "@@@STEP_LOG_END@json.output@@@"
227
+ ]
228
+ },
229
+ {
230
+ "cmd": [
231
+ "cipd",
232
+ "pkg-build",
233
+ "-in",
234
+ "fake-input-dir",
235
+ "-name",
236
+ "infra/fake-package",
237
+ "-out",
238
+ "fake-package-path",
239
+ "-json-output",
240
+ "/path/to/tmp/json",
241
+ "-install-mode",
242
+ "copy"
243
+ ],
244
+ "name": "build fake-package (2)",
245
+ "~followup_annotations": [
246
+ "@@@STEP_LOG_LINE@json.output@{@@@",
247
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
248
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
249
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/fake-package\"@@@",
250
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
251
+ "@@@STEP_LOG_LINE@json.output@}@@@",
252
+ "@@@STEP_LOG_END@json.output@@@"
253
+ ]
254
+ },
255
+ {
256
+ "cmd": [
257
+ "cipd",
258
+ "pkg-register",
259
+ "fake-package-path",
260
+ "-json-output",
261
+ "/path/to/tmp/json",
262
+ "-service-account-json",
263
+ "fake-credentials.json",
264
+ "-ref",
265
+ "fake-ref-1",
266
+ "-ref",
267
+ "fake-ref-2",
268
+ "-tag",
269
+ "fake_tag_1:fake_value_1",
270
+ "-tag",
271
+ "fake_tag_2:fake_value_2"
272
+ ],
273
+ "name": "register infra/fake-package",
274
+ "~followup_annotations": [
275
+ "@@@STEP_LOG_LINE@json.output@{@@@",
276
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
277
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
278
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/fake-package\"@@@",
279
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
280
+ "@@@STEP_LOG_LINE@json.output@}@@@",
281
+ "@@@STEP_LOG_END@json.output@@@"
282
+ ]
283
+ },
284
+ {
285
+ "name": "$result",
286
+ "reason": "Uncaught Exception: ValueError('add_version_file() may only be used once.',)",
287
+ "status_code": -1
288
+ }
289
+ ]
@@ -1,7 +1,7 @@
1
1
  [
2
2
  {
3
3
  "cmd": [
4
- "cipd.exe",
4
+ "cipd.bat",
5
5
  "ensure",
6
6
  "-root",
7
7
  "[START_DIR]\\packages",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  {
29
29
  "cmd": [
30
- "cipd.exe",
30
+ "cipd.bat",
31
31
  "search",
32
32
  "public/package/windows-amd64",
33
33
  "-tag",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  {
54
54
  "cmd": [
55
- "cipd.exe",
55
+ "cipd.bat",
56
56
  "describe",
57
57
  "public/package/windows-amd64",
58
58
  "-version",
@@ -103,7 +103,7 @@
103
103
  },
104
104
  {
105
105
  "cmd": [
106
- "cipd.exe",
106
+ "cipd.bat",
107
107
  "ensure",
108
108
  "-root",
109
109
  "[START_DIR]\\packages",
@@ -133,7 +133,7 @@
133
133
  },
134
134
  {
135
135
  "cmd": [
136
- "cipd.exe",
136
+ "cipd.bat",
137
137
  "search",
138
138
  "private/package/windows-amd64",
139
139
  "-tag",
@@ -158,7 +158,7 @@
158
158
  },
159
159
  {
160
160
  "cmd": [
161
- "cipd.exe",
161
+ "cipd.bat",
162
162
  "describe",
163
163
  "private/package/windows-amd64",
164
164
  "-version",
@@ -204,7 +204,7 @@
204
204
  },
205
205
  {
206
206
  "cmd": [
207
- "cipd.exe",
207
+ "cipd.bat",
208
208
  "pkg-build",
209
209
  "-in",
210
210
  "fake-input-dir",
@@ -228,7 +228,7 @@
228
228
  },
229
229
  {
230
230
  "cmd": [
231
- "cipd.exe",
231
+ "cipd.bat",
232
232
  "pkg-build",
233
233
  "-in",
234
234
  "fake-input-dir",
@@ -254,7 +254,7 @@
254
254
  },
255
255
  {
256
256
  "cmd": [
257
- "cipd.exe",
257
+ "cipd.bat",
258
258
  "pkg-register",
259
259
  "fake-package-path",
260
260
  "-json-output",
@@ -283,7 +283,7 @@
283
283
  },
284
284
  {
285
285
  "cmd": [
286
- "cipd.exe",
286
+ "cipd.bat",
287
287
  "create",
288
288
  "-pkg-def",
289
289
  "[START_DIR]\\fake-package.yaml",
@@ -302,13 +302,19 @@
302
302
  ],
303
303
  "name": "create fake-package.yaml",
304
304
  "~followup_annotations": [
305
- "@@@STEP_LOG_LINE@json.output (invalid)@null@@@",
306
- "@@@STEP_LOG_END@json.output (invalid)@@@"
305
+ "@@@STEP_TEXT@</br>pkg: fake-package.yaml</br>id: 40-chars-fake-of-the-package-instance_id@@@",
306
+ "@@@STEP_LOG_LINE@json.output@{@@@",
307
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
308
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
309
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"fake-package.yaml\"@@@",
310
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
311
+ "@@@STEP_LOG_LINE@json.output@}@@@",
312
+ "@@@STEP_LOG_END@json.output@@@"
307
313
  ]
308
314
  },
309
315
  {
310
316
  "cmd": [
311
- "cipd.exe",
317
+ "cipd.bat",
312
318
  "set-tag",
313
319
  "fake-package",
314
320
  "-version",
@@ -338,7 +344,7 @@
338
344
  },
339
345
  {
340
346
  "cmd": [
341
- "cipd.exe",
347
+ "cipd.bat",
342
348
  "set-ref",
343
349
  "fake-package",
344
350
  "-version",
@@ -368,7 +374,7 @@
368
374
  },
369
375
  {
370
376
  "cmd": [
371
- "cipd.exe",
377
+ "cipd.bat",
372
378
  "search",
373
379
  "fake-package/windows-amd64",
374
380
  "-tag",
@@ -2,6 +2,9 @@
2
2
  # Use of this source code is governed by a BSD-style license that can be
3
3
  # found in the LICENSE file.
4
4
 
5
+ from recipe_engine.config import List, Single, ConfigList, ConfigGroup
6
+ from recipe_engine.recipe_api import Property
7
+
5
8
  DEPS = [
6
9
  'recipe_engine/path',
7
10
  'recipe_engine/platform',
@@ -10,7 +13,18 @@ DEPS = [
10
13
  'cipd',
11
14
  ]
12
15
 
13
- def RunSteps(api):
16
+ PROPERTIES = {
17
+ 'use_pkg': Property(default=False, kind=bool),
18
+ 'pkg_files': Property(default=(), kind=List(str)),
19
+ 'pkg_dirs': Property(default=(), kind=ConfigList(lambda: ConfigGroup(
20
+ path=Single(str),
21
+ exclusions=List(str),
22
+ ))),
23
+ 'ver_files': Property(default=(), kind=List(str)),
24
+ 'install_mode': Property(default=None),
25
+ }
26
+
27
+ def RunSteps(api, use_pkg, pkg_files, pkg_dirs, ver_files, install_mode):
14
28
  # Need to set service account credentials.
15
29
  api.cipd.set_service_account_credentials(
16
30
  api.cipd.default_bot_service_account_credentials)
@@ -49,10 +63,27 @@ def RunSteps(api):
49
63
  'fake_tag_2': 'fake_value_2'})
50
64
 
51
65
  # Create (build & register).
52
- api.cipd.create(api.path['start_dir'].join('fake-package.yaml'),
53
- refs=['fake-ref-1', 'fake-ref-2'],
54
- tags={'fake_tag_1': 'fake_value_1',
55
- 'fake_tag_2': 'fake_value_2'})
66
+ if use_pkg:
67
+ root = api.path['start_dir'].join('some_subdir')
68
+ pkg = api.cipd.PackageDefinition('infra/fake-package', root, install_mode)
69
+ for fullpath in pkg_files:
70
+ pkg.add_file(api.path.abs_to_path(fullpath))
71
+ for obj in pkg_dirs:
72
+ pkg.add_dir(api.path.abs_to_path(obj.get('path', '')),
73
+ obj.get('exclusions'))
74
+ for pth in ver_files:
75
+ pkg.add_version_file(pth)
76
+
77
+ api.cipd.create_from_pkg(pkg,
78
+ refs=['fake-ref-1', 'fake-ref-2'],
79
+ tags={'fake_tag_1': 'fake_value_1',
80
+ 'fake_tag_2': 'fake_value_2'})
81
+ else:
82
+ api.cipd.create_from_yaml(api.path['start_dir'].join('fake-package.yaml'),
83
+ refs=['fake-ref-1', 'fake-ref-2'],
84
+ tags={'fake_tag_1': 'fake_value_1',
85
+ 'fake_tag_2': 'fake_value_2'})
86
+
56
87
 
57
88
  # Set tag or ref of an already existing package.
58
89
  api.cipd.set_tag('fake-package',
@@ -67,39 +98,89 @@ def RunSteps(api):
67
98
  def GenTests(api):
68
99
  yield (
69
100
  # This is very common dev workstation, but not all devs are on it.
70
- api.test('basic') +
71
- api.platform('linux', 64)
101
+ api.test('basic')
102
+ + api.platform('linux', 64)
72
103
  )
73
104
 
74
105
  yield (
75
- api.test('mac64') +
76
- api.platform('mac', 64)
106
+ api.test('mac64')
107
+ + api.platform('mac', 64)
77
108
  )
78
109
 
79
110
  yield (
80
- api.test('win64') +
81
- api.platform('win', 64)
111
+ api.test('win64')
112
+ + api.platform('win', 64)
82
113
  )
83
114
 
84
115
  yield (
85
- api.test('describe-failed') +
86
- api.platform('linux', 64) +
87
- api.override_step_data(
116
+ api.test('describe-failed')
117
+ + api.platform('linux', 64)
118
+ + api.override_step_data(
88
119
  'cipd describe public/package/linux-amd64',
89
120
  api.cipd.example_error(
90
121
  'package "public/package/linux-amd64-ubuntu14_04" not registered',
91
- )
92
- )
122
+ ))
93
123
  )
94
124
 
95
125
  yield (
96
- api.test('describe-many-instances') +
97
- api.platform('linux', 64) +
98
- api.override_step_data(
126
+ api.test('describe-many-instances')
127
+ + api.platform('linux', 64)
128
+ + api.override_step_data(
99
129
  'cipd search fake-package/linux-amd64 dead:beaf',
100
130
  api.cipd.example_search(
101
131
  'public/package/linux-amd64-ubuntu14_04',
102
132
  instances=3
103
- )
133
+ ))
134
+ )
135
+
136
+ yield (
137
+ api.test('basic_pkg')
138
+ + api.properties(
139
+ use_pkg=True,
140
+ pkg_files=[
141
+ '[START_DIR]/some_subdir/a/path/to/file.py',
142
+ '[START_DIR]/some_subdir/some_config.cfg',
143
+ ],
144
+ pkg_dirs=[
145
+ {
146
+ 'path': '[START_DIR]/some_subdir/directory',
147
+ },
148
+ {
149
+ 'path': '[START_DIR]/some_subdir/other_dir',
150
+ 'exclusions': [
151
+ r'.*\.pyc',
152
+ ]
153
+ },
154
+ ],
155
+ ver_file=['.versions/file.cipd_version'],
156
+ )
157
+ )
158
+
159
+ yield (
160
+ api.test('pkg_bad_verfile')
161
+ + api.properties(
162
+ use_pkg=True,
163
+ ver_files=['a', 'b'],
164
+ )
165
+ + api.expect_exception('ValueError')
166
+ )
167
+
168
+ yield (
169
+ api.test('pkg_bad_mode')
170
+ + api.properties(
171
+ use_pkg=True,
172
+ install_mode='',
173
+ )
174
+ + api.expect_exception('ValueError')
175
+ )
176
+
177
+ yield (
178
+ api.test('pkg_bad_file')
179
+ + api.properties(
180
+ use_pkg=True,
181
+ pkg_files=[
182
+ '[START_DIR]/a/path/to/file.py',
183
+ ],
104
184
  )
185
+ + api.expect_exception('ValueError')
105
186
  )