Skip to content

Skip file of kirk uses regex search() instead of full match, causing unintended test skipping #99

@WRxwang

Description

@WRxwang

When using a skip file (-S option) to skip specific tests, kirk incorrectly skips tests whose names contain the skip pattern as a substring, rather than only skipping tests that exactly match the pattern.
For example:
root@qemux86-64:/opt/wr-test/testcases/ltp/fs# cat /opt/wr-test/skipfile.ltp
ftest01

Running:
kirk -n -v -T 3h -f fs -o /opt/ltp/results/LTP_results.json -S /opt/wr-test/skipfile.ltp

Both ftest01 and lftest01 are skipped, because lftest01 contains the substring ftest01.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions