| Index: scripts/slave/recipes/infra/cipd_test.expected/cipd-latest-ok-inner.json
|
| diff --git a/scripts/slave/recipes/infra/cipd_test.expected/cipd-latest-ok-inner.json b/scripts/slave/recipes/infra/cipd_test.expected/cipd-latest-ok-inner.json
|
| index 5d003c106e6473d7d3b53582c8ae620e219cbac5..4b847ade04288c28ea32225c364a1f80f0fc6c8e 100644
|
| --- a/scripts/slave/recipes/infra/cipd_test.expected/cipd-latest-ok-inner.json
|
| +++ b/scripts/slave/recipes/infra/cipd_test.expected/cipd-latest-ok-inner.json
|
| @@ -7,15 +7,16 @@
|
| "--platform",
|
| "linux-amd64",
|
| "--dest-directory",
|
| - "[CWD]/cipd",
|
| + "[SLAVE_BUILD]/cipd",
|
| "--json-output",
|
| "/path/to/tmp/json"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "install cipd",
|
| "~followup_annotations": [
|
| "@@@STEP_TEXT@cipd instance_id: 40-chars-fake-of-the-package-instance_id@@@",
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
| - "@@@STEP_LOG_LINE@json.output@ \"executable\": \"fake_slave_build/cipd\", @@@",
|
| + "@@@STEP_LOG_LINE@json.output@ \"executable\": \"[SLAVE_BUILD]/cipd/cipd\", @@@",
|
| "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\"@@@",
|
| "@@@STEP_LOG_LINE@json.output@}@@@",
|
| "@@@STEP_LOG_END@json.output@@@"
|
| @@ -23,19 +24,20 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "pkg-build",
|
| "--in",
|
| "[SLAVE_BUILD]/build/scripts/slave/recipe_modules/cipd",
|
| "--name",
|
| "infra/cipd_recipe_test/linux-amd64",
|
| "--out",
|
| - "[CWD]/test_package.cipd",
|
| + "[SLAVE_BUILD]/test_package.cipd",
|
| "--json-output",
|
| "/path/to/tmp/json",
|
| "--install-mode",
|
| "copy"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "build linux-amd64",
|
| "~followup_annotations": [
|
| "@@@STEP_TEXT@instance_id: 40-chars-fake-of-the-package-instance_id@@@",
|
| @@ -50,9 +52,9 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "pkg-register",
|
| - "[CWD]/test_package.cipd",
|
| + "[SLAVE_BUILD]/test_package.cipd",
|
| "--json-output",
|
| "/path/to/tmp/json",
|
| "--service-account-json",
|
| @@ -66,6 +68,7 @@
|
| "--tag",
|
| "revision:deadbeaf"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "register infra/cipd_recipe_test/linux-amd64",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
| @@ -79,7 +82,7 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "set-tag",
|
| "infra/cipd_recipe_test/linux-amd64",
|
| "--version",
|
| @@ -91,6 +94,7 @@
|
| "--tag",
|
| "tag:cipd_test"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "cipd set-tag infra/cipd_recipe_test/linux-amd64",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
| @@ -107,7 +111,7 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "set-ref",
|
| "infra/cipd_recipe_test/linux-amd64",
|
| "--version",
|
| @@ -119,6 +123,7 @@
|
| "--ref",
|
| "cipd_test"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "cipd set-ref infra/cipd_recipe_test/linux-amd64",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
| @@ -135,7 +140,7 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "search",
|
| "infra/cipd_recipe_test/linux-amd64",
|
| "--tag",
|
| @@ -145,6 +150,7 @@
|
| "--service-account-json",
|
| "/creds/service_accounts/service-account-cipd-builder.json"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "cipd search infra/cipd_recipe_test/linux-amd64 revision:deadbeaf",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
| @@ -160,7 +166,7 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "describe",
|
| "infra/cipd_recipe_test/linux-amd64",
|
| "--version",
|
| @@ -170,6 +176,7 @@
|
| "--service-account-json",
|
| "/creds/service_accounts/service-account-cipd-builder.json"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "cipd describe infra/cipd_recipe_test/linux-amd64",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
| @@ -211,10 +218,10 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "ensure",
|
| "--root",
|
| - "[CWD]/cipd_test_package",
|
| + "[SLAVE_BUILD]/cipd_test_package",
|
| "--list",
|
| "infra/cipd_recipe_test/linux-amd64 latest",
|
| "--json-output",
|
| @@ -222,6 +229,7 @@
|
| "--service-account-json",
|
| "/creds/service_accounts/service-account-cipd-builder.json"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "ensure_installed",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
| @@ -237,10 +245,10 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "ensure",
|
| "--root",
|
| - "[CWD]/cipd_test_package",
|
| + "[SLAVE_BUILD]/cipd_test_package",
|
| "--list",
|
| "infra/cipd_recipe_test/linux-amd64 40-chars-fake-of-the-package-instance_id",
|
| "--json-output",
|
| @@ -248,6 +256,7 @@
|
| "--service-account-json",
|
| "/creds/service_accounts/service-account-cipd-builder.json"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "ensure_installed (2)",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
| @@ -266,8 +275,9 @@
|
| "python",
|
| "-u",
|
| "\nimport os, sys\nfrom common import chromium_utils # Error? See https://crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
|
| - "[CWD]/cipd_test_package/.cipd"
|
| + "[SLAVE_BUILD]/cipd_test_package/.cipd"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "rmtree .cipd package directory",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@python.inline@@@@",
|
| @@ -282,19 +292,20 @@
|
| },
|
| {
|
| "cmd": [
|
| - "fake_slave_build/cipd",
|
| + "[SLAVE_BUILD]/cipd/cipd",
|
| "pkg-build",
|
| "--in",
|
| - "[CWD]/cipd_test_package",
|
| + "[SLAVE_BUILD]/cipd_test_package",
|
| "--name",
|
| "infra/cipd_recipe_test/linux-amd64",
|
| "--out",
|
| - "[CWD]/test_package.cipd",
|
| + "[SLAVE_BUILD]/test_package.cipd",
|
| "--json-output",
|
| "/path/to/tmp/json",
|
| "--install-mode",
|
| "copy"
|
| ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| "name": "build linux-amd64 (2)",
|
| "~followup_annotations": [
|
| "@@@STEP_LOG_LINE@json.output@{@@@",
|
|
|