Remove the port from the subsystem the test wants to remove. Fixes: a12281b8320f ("nvme: introduce nvmet_target_{setup/cleanup} common code") Signed-off-by: Daniel Wagner <dwagner@xxxxxxx> --- tests/nvme/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nvme/rc b/tests/nvme/rc index ba83f32febb8..d74a5418557d 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -869,7 +869,7 @@ _nvmet_target_cleanup() { esac done - _get_nvmet_ports "${def_subsysnqn}" ports + _get_nvmet_ports "${subsysnqn}" ports for port in "${ports[@]}"; do _remove_nvmet_subsystem_from_port "${port}" "${subsysnqn}" -- 2.44.0