blob: b0b1e35f315e641eca5c1583c53da432b30ffe02 [file] [log] [blame]
[
{
"cmd": [
"echo",
"Hello World"
],
"name": "echo",
"stderr": "/path/to/tmp/",
"stdout": "/path/to/tmp/"
},
{
"cmd": [
"cat"
],
"name": "cat",
"stdin": "hello",
"stdout": "/path/to/tmp/out"
},
{
"cmd": [
"cat",
"hello"
],
"name": "cat (2)",
"stdout": "/path/to/tmp/out"
},
{
"cmd": [
"cat"
],
"name": "cat (3)",
"stdin": "\ufffdhello",
"stdout": "/path/to/tmp/"
},
{
"cmd": [
"echo",
"huh"
],
"name": "automock",
"stdout": "/path/to/tmp/out"
},
{
"cmd": [
"bash",
"-c",
"echo blah && echo fail 1>&2"
],
"name": "automock (fail)",
"stderr": "/path/to/tmp/err",
"stdout": "/path/to/tmp/out"
},
{
"cmd": [
"echo",
"leaking"
],
"name": "leak stdout",
"stdout": "[TMP_BASE]/out.txt"
},
{
"cmd": [
"ls",
"/path/to/tmp/"
],
"name": "list temp dir"
},
{
"cmd": [
"ls",
"[TMP_BASE]/out"
],
"name": "leak dir"
},
{
"cmd": [
"python",
"-u",
"\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write('bad_value')\n",
"/path/to/tmp/"
],
"name": "override_default_mock",
"~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@",
"@@@STEP_LOG_LINE@python.inline@import sys@@@",
"@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@",
"@@@STEP_LOG_LINE@python.inline@ f.write('bad_value')@@@",
"@@@STEP_LOG_END@python.inline@@@"
]
},
{
"cmd": [
"python",
"-u",
"\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write('sucess')\n",
"/path/to/tmp/"
],
"name": "success output log",
"~followup_annotations": [
"@@@STEP_LOG_LINE@raw_io.output[success_log]@sucess@@@",
"@@@STEP_LOG_END@raw_io.output[success_log]@@@",
"@@@STEP_LOG_LINE@python.inline@@@@",
"@@@STEP_LOG_LINE@python.inline@import sys@@@",
"@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@",
"@@@STEP_LOG_LINE@python.inline@ f.write('sucess')@@@",
"@@@STEP_LOG_END@python.inline@@@"
]
},
{
"cmd": [
"python",
"-u",
"\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write('failure')\nexit(1)\n",
"/path/to/tmp/"
],
"name": "failure output log",
"~followup_annotations": [
"@@@STEP_LOG_LINE@raw_io.output[failure_log]@failure@@@",
"@@@STEP_LOG_END@raw_io.output[failure_log]@@@",
"@@@STEP_LOG_LINE@python.inline@@@@",
"@@@STEP_LOG_LINE@python.inline@import sys@@@",
"@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@",
"@@@STEP_LOG_LINE@python.inline@ f.write('failure')@@@",
"@@@STEP_LOG_LINE@python.inline@exit(1)@@@",
"@@@STEP_LOG_END@python.inline@@@",
"@@@STEP_FAILURE@@@"
]
},
{
"jsonResult": null,
"name": "$result"
}
]