diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-06-01 16:56:40 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-07-07 20:08:12 +0200 |
commit | 7126fbaf81b4b77da36a6e0995f234bd293db663 (patch) | |
tree | 4e7cfba5173a21b5eabbdda1ccca2970f7bf58d9 /docs | |
parent | 1c9698b10722abf5025ed4d464a5bec60da0daa4 (diff) | |
download | meson-7126fbaf81b4b77da36a6e0995f234bd293db663.zip meson-7126fbaf81b4b77da36a6e0995f234bd293db663.tar.gz meson-7126fbaf81b4b77da36a6e0995f234bd293db663.tar.bz2 |
Add `skip_on_jobname` to test.json
Plan to replace the hard-coded list of 'may be skipped' framework tests in
skippable() with annotations in test.json which record 'will be skipped
in these specific CI jobs'.
If the value of the MESON_CI_JOBNAME env var (an arbitrary string
expected to be unique for each CI configuration) contains any of the
strings in the `skip_on_jobname` key in test.json, the test is expected
to output MESON_SKIP_TEST.
Unexpected skips or runs are treated as an error.
Future work: Maybe we should add additional count categories 'unexpected
skip' and 'unexpected not skipped', rather than counting those as 'skipped'
and 'failed', respectively.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Contributing.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/Contributing.md b/docs/markdown/Contributing.md index aec73ec..77981d7 100644 --- a/docs/markdown/Contributing.md +++ b/docs/markdown/Contributing.md @@ -380,6 +380,16 @@ matched: | `literal` | Literal match (default) | | `re` | regex match | +#### skip_on_jobname + +The `skip_on_jobname` key contains a list of strings. If the `MESON_CI_JOBNAME` +environment variable is set, and any of them are a sub-string of it, the test is +expected to be skipped (that is, it is expected that the test will output +`MESON_SKIP_TEST`, because the CI environment is not one in which it can run, +for whatever reason). + +The test is failed if it skips or runs unexpectedly. + ### Skipping integration tests Meson uses several continuous integration testing systems that have |