]> www.infradead.org Git - users/sagi/libnvme.git/commit
test/mi: Improve test OK reporting, print log data separately
authorJeremy Kerr <jk@codeconstruct.com.au>
Fri, 10 Jun 2022 01:41:52 +0000 (09:41 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Fri, 10 Jun 2022 01:50:37 +0000 (09:50 +0800)
commitf87fa1c93af12234a1cb86003a1135b0022e7c9c
tree9be631a8e8abce300184038e0686ea670497157a
parentd0bdf7351e891be63ac07fa325f1aef3da9e42e2
test/mi: Improve test OK reporting, print log data separately

Currently, we have a confusing output for tests (all of which currenly
pass):

    $ ./obj/test/test-mi
    crc mismatch
    $ echo $?
    0

This change adds reporting for each test, and separates the nvme_msg log
data from the report:

    $ ./obj/test/test-mi
    Running test read_mi_data...  OK
    Running test transport_fail...  OK
    Running test invalid_crc...  OK
    --- begin test output
    crc mismatch
    --- end test output

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
test/mi.c