• Paolo Bonzini's avatar
    kselftest: fix TAP output for skipped tests · b85d387c
    Paolo Bonzini authored
    According to the TAP specification, a skipped test must be marked as "ok"
    and annotated with the SKIP directive, for example
    
       ok 23 # skip Insufficient flogiston pressure.
       (https://testanything.org/tap-specification.html)
    
    Fix the kselftest infrastructure to match this.
    
    For ksft_exit_skip, it is preferrable to emit a dummy plan line that
    indicates the whole test was skipped, but this is not always possible
    because of ksft_exit_skip being used as a "shortcut" by the tests.
    In that case, print the test counts and a normal "ok" line.  The format
    is now the same independent of whether msg is NULL or not (but it is
    never NULL in any caller right now).
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    b85d387c
runner.sh 2.49 KB