Loading
test/unit/nvmf: add abort support to acquire preempt tests
Generalize test_reservation_acquire_preempt_1 to be a high level entry point for running preempt and preempt-and-abort tests. The test setup for preempt versus preempt-and-abort is identical with abort carrying to extra validations. CUnit doesn't allow passing any parameters to a test, we'll have to make sub-tests for preempt to avoid a large duplication of test code. test_reservation_acquire_preempt_1 has been renamed to test_reservation_acquire_preempt_basic and has been extended to also validate the abort case (validates the ns preempt info state). This will be extended in future commits with more preempt tests Change-Id: I193e7363331dcd5bc3c580af85e89f16b9e2a0da Signed-off-by:Joel Cunningham <joel.cunningham@oracle.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26673 Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com>