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 05898A00C5 for ; Thu, 14 Jul 2022 09:50:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EFA7441156; Thu, 14 Jul 2022 09:50:08 +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 A38C3400D4 for ; Tue, 12 Jul 2022 16:18:12 +0200 (CEST) Received: by mail-pj1-f99.google.com with SMTP id s21so7718876pjq.4 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=qtZ9iLdMIf/Nh5eu0NJp3CKFbyA6wfHw/nPozZkwNljHfGn9qNCGspFmWiMVzL3Yh8 t70qstU3EUHYVNzDu31tO813NKbYZO+xZ/4Okj32L1hN+kZ71HO4kSEH8oVSGbKmDufq /F/e7bc6XxiPVkdQD2n6Srmueqavzn8llGaBxsGZzokBFFYqFqZ4FQC0n2GP8IB4Pkg3 ToMBeKCIbdhIy/ivEeFPnNSnaLGPWqEGCwJ18uKtWwCDOBRbyqkRBScRLJbc03jnyGJ0 zj8Hd8vmu2IP8bnfCH1gaOa0wstgOLJ2RkMa0UGC0EJ03BBYKEeT6TxZfduHPV0sWWlG 4ASg== X-Gm-Message-State: AJIora9OKxGOcdZMdu5kJ7nvDcjiMOzx6TUujdIxkNcuK4hjlAUMXOex imi40ryz4zR3sTpX2Pxp3wN6wdAb9Nfny1J8Mo2HQJpO7qOEDYxERIUymv5NaAKd1w== 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: Thu, 14 Jul 2022 09:50:07 +0200 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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