• Alexander Barkov's avatar
    mtr --skip-not-found did not skip suites · 3b80d23d
    Alexander Barkov authored
    --skip-not-found switch tells mtr to skip not found tests instead of aborting.
    But it failed to skip the test if the suite name was not found.
    
    This problem also made the *last-N-failed builbot builders fail
    to run `mtr --skip-not-found` if the last commit removed a file in
    the mysql-test/include/ directory.
    
    This commit fixes it, now the not found test is properly skipped,
    no matter what component of the test name was not found:
    
    $ ./mtr main.foo --skip-not-found foo.main
    ...
    ==============================================================================
    TEST                                  WORKER RESULT   TIME (ms) or COMMENT
    --------------------------------------------------------------------------
    foo.main                                 [ skipped ]  not found
    main.foo                                 [ skipped ]  not found
    --------------------------------------------------------------------------
    3b80d23d
mtr_cases.pm 35.9 KB