From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2549FA0032; Wed, 13 Jul 2022 16:09:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6143F42B71; Wed, 13 Jul 2022 16:09:00 +0200 (CEST) Received: from mail-pj1-f99.google.com (mail-pj1-f99.google.com [209.85.216.99]) by mails.dpdk.org (Postfix) with ESMTP id BC72142684 for ; Tue, 12 Jul 2022 16:18:12 +0200 (CEST) Received: by mail-pj1-f99.google.com with SMTP id y14-20020a17090a644e00b001ef775f7118so11535282pjm.2 for ; Tue, 12 Jul 2022 07:18:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fUNqUsnn//zkkSGGrF2l0dBzaBIBUmHAKbcn0gkWI7U=; b=EUsPTb1nYst6mrHHwCwYfxSpilkkfLw3KLQSMko6RP5UxVgaZivGxviIwDJUykfxE3 2oRzMT9jWcm9AqHMerAJMY+bNIFAA9AkF912bGACpSQGVB6eYs1aDh4/9kRR0X3dUVq2 ZvebpzdVQGs0UV37qtXr/g+j2hMyfm20cejag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fUNqUsnn//zkkSGGrF2l0dBzaBIBUmHAKbcn0gkWI7U=; b=t/ZiPD8NhVWSTqgHEyYPyFU2Uf7x018ULa3EGpwqigLEhVXaIVzHZzRkfqAsP7guxa inED7oX+mDWqd9kz/df9iX1t/xycbW98HqCfDYwmJI7VqWL9YA2aUoYXO45B1rEK6xss uJp/sNbrXC8DPTtbn2yIEmzlTPuDlsFb1cqB5Uj/2QPj3FjgfxNEhiTPgnrAwIkSk1nw CxZZgNhX54mMuxtxVXmQBjm+0HTzPQQ3m2kEDFT5f1dZTQtBhzvr9fIc1l1KESX802pT LI8HvjIO3x5YPEAhdmnLzAmq85J5iIe1UmTl1EgpugGv96BSwN5JlsIbguDcwKk0VZhy ZROA== X-Gm-Message-State: AJIora9EqFKLhUx/iElYjQ/hfgHCOl0CPjXOrbGbFGTFVDOpjXrjdwPt N08grZ8c8yJwGl2Y3IS8x+X8HjyOZbwVKl/X8Mnsc4/iBseY6cpawpu1RFWQeKcqsYgi1/v4NmX ST1EZjGSDVZeKPBY/QgWOv98ZBOeJGpB9S4v9IOsYs7JCs0dxm7vsVxbrLSbNqTKmEu2NUsphns yZabmyOZRy7iFSdw== X-Google-Smtp-Source: AGRyM1v/+Y9Mv7sMk5KMK8KG3KlQgreqKx2KkbbtF0W7eSVbbHkE9QK0v8vWETwHc61J+qfWKJ2N7d8T3n0R X-Received: by 2002:a17:902:d490:b0:16b:fb09:50ea with SMTP id c16-20020a170902d49000b0016bfb0950eamr24089783plg.77.1657635491814; Tue, 12 Jul 2022 07:18:11 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id s2-20020a17090302c200b0016a0e4dfddbsm506479plk.127.2022.07.12.07.18.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2022 07:18:11 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::1083]) by postal.iol.unh.edu (Postfix) with ESMTP id A63F8605247D; Tue, 12 Jul 2022 10:18:10 -0400 (EDT) From: jspewock@iol.unh.edu To: dev@dpdk.org Cc: bernard.iremonger@intel.com, juraj.linkes@pantheon.tech, ohilyard@iol.unh.edu, Jeremy Spewock , stable@dpdk.org Subject: [PATCH] test/ipsec: fix invalid crypto device failing Date: Tue, 12 Jul 2022 10:17:01 -0400 Message-Id: <20220712141701.27797-1-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 13 Jul 2022 16:08:57 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Jeremy Spewock ipsec_autotest is now skipped if no compatible crypto devices are found. Fixes issue where if at least one crypto device was found but no compatible crypto devices for the ipsec_autotest test case are present the case would fail with no error message. Now, when this situation is encountered, the test case will be skipped with an explanation. Fixes: 59d7353b0df0 ("test/ipsec: fix test suite setup") Cc: stable@dpdk.org Signed-off-by: Jeremy Spewock Signed-off-by: Owen Hilyard --- app/test/test_ipsec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c index 7047e17960..7c03a06785 100644 --- a/app/test/test_ipsec.c +++ b/app/test/test_ipsec.c @@ -320,8 +320,10 @@ testsuite_setup(void) } } - if (ts_params->valid_dev_found == 0) - return TEST_FAILED; + if (ts_params->valid_dev_found == 0) { + RTE_LOG(WARNING, USER1, "No compatible crypto device found.\n"); + return TEST_SKIPPED; + } ts_params->mbuf_pool = rte_pktmbuf_pool_create( "CRYPTO_MBUFPOOL", -- 2.35.1