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 DE4AEA00C4 for ; Tue, 26 Apr 2022 09:41:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D72EE4068E; Tue, 26 Apr 2022 09:41:24 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 526C94068E for ; Tue, 26 Apr 2022 09:41:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650958882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zULjgCFkXVIdF+mO2z4prwJUntkSQ2vtByVcs9G3g+s=; b=RC9lnfVL2+OjHWMVvv6ZNneu+Qw4JkDfwNXpc8X8EurrPEoyrdK4IBMm4iYkiSJy9oiDP0 Ow/rasYLZOPHsJ7UPOvETEwc9ayqX/953XzmRl1g51c9NPkWSoMiXL1HZnkcDyOtlXqT6R AFipBGD9nLnuhgK4pwh/xBULl6nLgGk= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-235-dzRdG5GLN2yOTz6eami9Ag-1; Tue, 26 Apr 2022 03:41:21 -0400 X-MC-Unique: dzRdG5GLN2yOTz6eami9Ag-1 Received: by mail-lj1-f197.google.com with SMTP id l26-20020a2e99da000000b0024f02d881cdso1758003ljj.6 for ; Tue, 26 Apr 2022 00:41:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zULjgCFkXVIdF+mO2z4prwJUntkSQ2vtByVcs9G3g+s=; b=Zabf6lpk1JfCXwEO7pj2lJcWFnEKFm7Qs4pNn4NYqcrRyD/RIvR8+4kjJ0IdjqkN09 DoZ9u44R6X50UoFfiOE9mGWhGHRiaB35k7enaLrE3Pcl08g6/aLiGcWyV/JuYHtJ+vPz 8AAJucee6a/OMq7Ax0/2pszDzXN22gcvELtj0WAz3hEZxTHsFswKagAXoSr5noekAPqe /pkUCEGe2pMjJb0yk079olHNaY86lUtix/ZBhLpJu/7WnsO043GChpkqG81gfJB0gQyD vYJtN6umSn3d71kc0DuKb1xrX1e2E3AFw22oidnvbOql6ZlEwywe+vXcgTVEQgAhZpl3 KLDw== X-Gm-Message-State: AOAM5336vbALsuzzuxJOobat96duyyZUpBNbTa7op6Sm6ihEeTRBEYHd 7YqPH8wpKk3+OiM2N3656MDt8ufo5YIQDsflPAySGBV2JYSjvCkoDtonn691sdILXsPFYfOBASg kBeKdtO9oIUU/mmEotgsphfE= X-Received: by 2002:a05:651c:1781:b0:247:daa7:4358 with SMTP id bn1-20020a05651c178100b00247daa74358mr13470376ljb.477.1650958879991; Tue, 26 Apr 2022 00:41:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtNA81/2hJ95CwZmRplA3r7jBPTu46xzCOVKZE357MyKMs1vjeo7JomahNg9LP2/mKy9OoZZ/4zKNPgAwma7I= X-Received: by 2002:a05:651c:1781:b0:247:daa7:4358 with SMTP id bn1-20020a05651c178100b00247daa74358mr13470366ljb.477.1650958879781; Tue, 26 Apr 2022 00:41:19 -0700 (PDT) MIME-Version: 1.0 References: <1647868407-4467-1-git-send-email-roretzla@linux.microsoft.com> <1647933155-30745-1-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1647933155-30745-1-git-send-email-roretzla@linux.microsoft.com> From: David Marchand Date: Tue, 26 Apr 2022 09:41:08 +0200 Message-ID: Subject: Re: [PATCH v2] test/bpf: skip test if libpcap is unavailable To: Tyler Retzlaff Cc: dev , Stephen Hemminger , "Burakov, Anatoly" , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 On Tue, Mar 22, 2022 at 8:12 AM Tyler Retzlaff wrote: > > test_bpf_convert is being conditionally registered depending on the > presence of RTE_HAS_LIBPCAP except the UT unconditionally lists it as a > test to run. > > when the UT runs test_bpf_convert test-dpdk can't find the registration > and assumes the DPDK_TEST environment variable hasn't been defined > resulting in test-dpdk dropping to interactive mode and subsequently > waiting for the remainder of the UT fast-test timeout period before > reporting the test as having timed out. > > * unconditionally register test_bpf_convert > * if ! RTE_HAS_LIBPCAP provide a stub test_bpf_convert that reports the > test is skipped similar to that done with the test_bpf test. > > Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF") > Cc: stable@dpdk.org > > Signed-off-by: Tyler Retzlaff Acked-by: Stephen Hemminger Acked-by: Konstantin Ananyev Applied, thanks. -- David Marchand