CTest: Do not override exit code when pass regex match

Fixes #16551
Status Job ID Name Coverage
  External
passed kwrobot-branch-check