From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B031C433EF for ; Wed, 9 Mar 2022 01:15:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230186AbiCIBQc (ORCPT ); Tue, 8 Mar 2022 20:16:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230454AbiCIBQV (ORCPT ); Tue, 8 Mar 2022 20:16:21 -0500 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0204FB2E27 for ; Tue, 8 Mar 2022 17:06:00 -0800 (PST) Received: by mail-il1-x131.google.com with SMTP id i1so443191ila.7 for ; Tue, 08 Mar 2022 17:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MusoGpUv1p2zQy1RvldH76aZNXuwQdYMtqN07IJwAnI=; b=ds1htgBVmHtliaUjeJHGy47FCcuSJ0JBWXo0VtlQQtURq7/Uzjk8Q+tM+H4kvFQtMA MGmn4AMMe9bgbvAKGCpoE2zt2K6IUmx28wNr1rocIo+PGyarjK62FSYOhTdAGsMVKeg2 HBkybG6PPKZUunsf9ub8/91bSAliJqSWJUeF0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MusoGpUv1p2zQy1RvldH76aZNXuwQdYMtqN07IJwAnI=; b=R6lH7pmPmb8oDcAtHiWbqYP/BeJLFcYIYY+ErMEnNf3L8+1+KNPNIhl6QSSGy7bodB aLqGfRz/1omOjNnG3ukQdTdhgrbDnayS9kc54rXQeGvWvqr0EwD8PeQm+dFhuUShTkNl +4P9TfNdm3yMTbymU2EpmTAjGN9pzWT+hzymqnYyfSFnCsRAuyFn6p/ZqGesgMLZQEBo ZyAZYjWri2WuDQx3DChI72kWRyL5wyWM3KzK6HJdGxON76gFgS+R+4h3KPE5jsDGG7a8 //T/UaswdSsYThLBwue9UFSUpaRAvK1IBV2Zc5bvuByLA01n/1/NvFgLIK8BPcVhSDRM NpbQ== X-Gm-Message-State: AOAM533aUnulAriKMV1w4rjPGJyPZCMQFOkOtE1zFEirXnswiX92fYgK oxwXRf55pJm8yKjgtqXvjQUQXqZ1Ca986A== X-Google-Smtp-Source: ABdhPJynsZ5A+Ab/kN8RTDK2ahNjxuyh0PquXXQBfvfkGdUy/rfUBZmutFfvNjFABdN7j3fH8jeMfg== X-Received: by 2002:a92:c568:0:b0:2c2:9ad2:a787 with SMTP id b8-20020a92c568000000b002c29ad2a787mr17982333ilj.228.1646783508042; Tue, 08 Mar 2022 15:51:48 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id n5-20020a056e02148500b002c426e077d4sm208510ilk.19.2022.03.08.15.51.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Mar 2022 15:51:47 -0800 (PST) Subject: Re: [PATCH net 0/2] selftests: pmtu.sh: Fix cleanup of processes launched in subshell. To: Guillaume Nault , David Miller , Jakub Kicinski Cc: netdev@vger.kernel.org, David Ahern , Vadim Fedorenko , Shuah Khan , linux-kselftest@vger.kernel.org, Shuah Khan References: From: Shuah Khan Message-ID: <36d7619f-0fb4-e23b-2d2b-e0d27fd517ee@linuxfoundation.org> Date: Tue, 8 Mar 2022 16:51:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 3/8/22 3:14 PM, Guillaume Nault wrote: > Depending on the options used, pmtu.sh may launch tcpdump and nettest > processes in the background. However it fails to clean them up after > the tests complete. > > Patch 1 allows the cleanup() function to read the list of PIDs launched > by the tests. > Patch 2 fixes the way the nettest PIDs are retrieved. > > v2: > * Use tcpdump's immediate mode to capture packets even in short lived > tests. > * Add patch 2 to fix the nettest_pids list. > > Guillaume Nault (2): > selftests: pmtu.sh: Kill tcpdump processes launched by subshell. > selftests: pmtu.sh: Kill nettest processes launched in subshell. > > tools/testing/selftests/net/pmtu.sh | 21 +++++++++++++++++---- > 1 file changed, 17 insertions(+), 4 deletions(-) > Both of these look good to me. One nit on commit header. Please include net in the patch subject line in the future. e.g: selftests:net pmtu.sh Tested them on my system. Seeing these messages even after building nettest: 'nettest' command not found; skipping tests xfrm6udp not supported TEST: vti6: PMTU exceptions (ESP-in-UDP) [SKIP] 'nettest' command not found; skipping tests xfrm4udp not supported TEST: vti4: PMTU exceptions (ESP-in-UDP) [SKIP] 'nettest' command not found; skipping tests xfrm6udprouted not supported TEST: vti6: PMTU exceptions, routed (ESP-in-UDP) [SKIP] 'nettest' command not found; skipping tests xfrm4udprouted not supported Might not be related to this patch though. I jusr ran pmtu.sh from net directory. Reviewed-by: Shuah Khan thanks, -- Shuah