blob: 9ece461d618448503d81de73e7cff18d642fdf36 [file] [log] [blame] [edit]
[
{
"cmd": [
"echo",
"hello"
],
"name": "no env"
},
{
"cmd": [
"echo",
"hello"
],
"env": {
"SOMETHING": "1"
},
"name": "with env"
},
{
"cmd": [
"echo",
"hello"
],
"env": {
"SOMETHING": "1",
"SOMETHING_ELSE": "0"
},
"name": "with 2 envs"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"name": "default"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": null
},
"name": "drop"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": "bar"
},
"name": "env step"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": "foo:<RECIPE_ENGINE_CONTEXT_TEST>:bar"
},
"name": "env step augmented"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": "foo:<RECIPE_ENGINE_CONTEXT_TEST>:bar"
},
"env_prefixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/pants",
"[START_DIR]/shirt"
]
},
"name": "env step with prefix"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": "foo:<RECIPE_ENGINE_CONTEXT_TEST>:bar"
},
"env_prefixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/pants",
"[START_DIR]/shirt"
]
},
"env_suffixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/good_hat"
]
},
"name": "env step with prefix and suffix"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": "foo:<RECIPE_ENGINE_CONTEXT_TEST>:bar"
},
"env_prefixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/pants",
"[START_DIR]/shirt"
]
},
"env_suffixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/good_hat",
"[START_DIR]/bad_hat"
]
},
"name": "env step with 2 suffixes"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env_prefixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/shirt"
]
},
"name": "env with default value"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": "foo"
},
"env_prefixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/shirt"
]
},
"name": "env with override value"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": null
},
"env_prefixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/shirt"
]
},
"name": "env with cleared value"
},
{
"cmd": [
"bash",
"-c",
"echo -n $RECIPE_ENGINE_CONTEXT_TEST"
],
"env": {
"RECIPE_ENGINE_CONTEXT_TEST": ""
},
"env_prefixes": {
"RECIPE_ENGINE_CONTEXT_TEST": [
"[START_DIR]/shirt"
]
},
"name": "env with empty value"
},
{
"jsonResult": null,
"name": "$result"
}
]