Update test.json schema to add stdout

Update the test.json schema, adding the 'stdout' property.

Also amend the test.json schema so the presence of an unexpected
property on the root object causes a validation error.

v2:
Also add 'tools' property to json schema.
Amend the documentation not to use the word 'list' to describe a dict.
pull/6620/head
Jon Turney 4 years ago
parent 630cfd84ad
commit 1dee6c618d
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 25
      data/test.schema.json
  2. 6
      docs/markdown/Contributing.md

@ -1,5 +1,6 @@
{
"type": "object",
"additionalProperties": false,
"properties": {
"env": {
"type": "object",
@ -100,6 +101,30 @@
"prefix"
]
}
},
"tools": {
"type": "object"
},
"stdout": {
"type": "array",
"items": {
"type": "object",
"properties": {
"line": {
"type": "string"
},
"match": {
"type": "string",
"enum": [
"literal",
"re"
]
}
},
"required": [
"line"
]
}
}
}
}

@ -329,10 +329,10 @@ Currently supported values are:
#### tools
This section specifies a list of tool requirements in a simple key-value format.
This section specifies a dict of tool requirements in a simple key-value format.
If a tool is specified, it has to be present in the environment, and the version
requirement must be fulfilled match. Otherwise, the entire test is skipped
(including every element in the test matrix).
requirement must be fulfilled. Otherwise, the entire test is skipped (including
every element in the test matrix).
#### stdout

Loading…
Cancel
Save