CTest: Properly reset output to avoid duplication with --repeat-until-fail

Status Job ID Name Coverage
  External
passed kwrobot-branch-check