Skip to content

Commit

Permalink
Merge "Document how to write multiline regex with comments"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 27, 2017
2 parents 29d6028 + 515edd4 commit 180e9f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/run-tempest/README.rst
Expand Up @@ -16,9 +16,19 @@ Run Tempest
:default: ''

A regular expression used to select the tests.

It works only when used with some specific tox environments
('all', 'all-plugin'.)

Multi-line and commented regexs can be achieved by doing this:

::
vars:
tempest_test_regex: |
(?x) # Ignore comments and whitespaces
# Line with only a comment.
(tempest\.(api|scenario|thirdparty)).*$ # Run only api scenario and third party

.. zuul:rolevar:: tox_venvlist
:default: smoke

Expand Down

0 comments on commit 180e9f5

Please sign in to comment.