Commit 0c2e37e
committed
validation/util/container: Use a local UUID for stdout/stderr
So validation/create.t gives:
ok 4 - create MUST generate an error if the ID provided is not unique
---
{
"error": "exit status 1",
"reference": "https://github.com/opencontainers/runtime-spec/blob/v1.0.0/runtime.md#create",
"stderr": "container with id exists: 4a142dd0-e5bc-48b3-9abd-49c1a8f7c498\n"
}
...
instead of:
ok 4 - create MUST generate an error if the ID provided is not unique
---
{
"error": "open /tmp/ocitest842577116/stdout-178f8311-9cc7-42c5-b91e-abbe29eaf582: file exists",
"reference": "https://github.com/opencontainers/runtime-spec/blob/v1.0.0/runtime.md#create"
}
...
The old code hit the internal error, while the new code is checking
for a runtime error.
Signed-off-by: W. Trevor King <wking@tremily.us>1 parent a12de42 commit 0c2e37e
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
0 commit comments