Comment 9 for bug 1506215

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-testr (master)

Reviewed: https://review.openstack.org/522768
Committed: https://git.openstack.org/cgit/openstack/os-testr/commit/?id=96db91056aded65abd8e8bb531ebcaf77b32b12a
Submitter: Zuul
Branch: master

commit 96db91056aded65abd8e8bb531ebcaf77b32b12a
Author: Szymon Datko <email address hidden>
Date: Thu Nov 23 15:54:29 2017 +0100

    Fix regex builder

    Currently when the blacklist_file and regex string is provided,
    the constructed regex looks like '^((?!black1|black2|...).)*$regex'.
    This is incorrect, as it will match nothing - some string
    is expected after end of the line [denoted as $ in the regex].

    The proper construction is like ^(?!black1|black2|...).*(regex).*$
    This solves the issue with Tempest, where using blacklist for smoke
    tests is not working now, as it leads into the issue described above.

    Change-Id: Icdeb3c311f7eb414158aedb4c030494b419211c0
    Closes-Bug: #1506215
    Closes-Bug: #1595119
    Closes-Bug: #1622722
    Closes-Bug: #1669455