Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp897468pxb; Wed, 6 Oct 2021 18:24:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3EF4YyBouW4+ywr1bVvkYWuXxjMDN43FhZq4c9NUGskbJCJPQaLP2XBakLW0j/LhRsUNM X-Received: by 2002:a17:90b:1e01:: with SMTP id pg1mr1576538pjb.81.1633569896254; Wed, 06 Oct 2021 18:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633569896; cv=none; d=google.com; s=arc-20160816; b=W57Pzk+AlrYYcCemdvMa9JRc0QOGnKMNPwDP5ciX0RHCOU2qQD0xveCDAkDlxfJLgM 0pA0frCmGLQjzx5h3THgmdbfg2qpTdEh5DKEpAacn7VZun8Q2uGrQCgaM0gjKFwXxSFG sgioQBXegJQG8u4Lq165jxWTFFw6GUPTeowWxKonz+v0G1dfOceSbNAqtdYrNe7khRG8 lzRfx/Ueig0wSQOmDTK+lYd00tSV05K0M6mVbsGr/7I5xAw84MqVl8Do/OHw4dsV4bqV ADHgtoS6PfrLu0/mTdUL1874VEWSOWrNpNln75doFOveY8rTo7yg+yslCLfCITMYs2pN DX0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ll0oa75vwhrd/jX569DuLEC0YhlCdGYCCf3ViMztJWY=; b=oYGDPdWmA6STrmR09faiOKwjWoqDQoVNVne22y47UiUr3Xgafc9e1HuuSWnoESo3Mn hDOxy7PjhxGBy8a2n0UZYInwHyTNUrfXFjccf7OKkhThleSPkzKhlEqitKNLi+LqryB0 xhWSMbazXqNlziw6SvulHwAk9d5/x0dzGrkXj6zRsnHGZ75D+lnLeKxs+N93/o/h0WJL aGJd2lQJTR78znkiAO8Y1AdXI6dqlGYeJQHxGUyqA4tYzK0Fss2cY3dlg+3BdO9/08PC f3+IG+FAjMVm97mTk3QNXFOLDiTUzMMFUggHz1QiNXZ+yVur0RiAUnYcXVSCewySriP3 CmaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XI9c895b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d128si26864005pfa.333.2021.10.06.18.24.43; Wed, 06 Oct 2021 18:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XI9c895b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231624AbhJGBYm (ORCPT + 99 others); Wed, 6 Oct 2021 21:24:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbhJGBYl (ORCPT ); Wed, 6 Oct 2021 21:24:41 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 771E5C061746; Wed, 6 Oct 2021 18:22:48 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id h189so2063399iof.1; Wed, 06 Oct 2021 18:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ll0oa75vwhrd/jX569DuLEC0YhlCdGYCCf3ViMztJWY=; b=XI9c895b2ORswndS2kO8/54RqxOi4N4Y/aDaXGGuPcUzXKv509ghzLFNCLwZQEzu+C 6o8cl1x14ANfLLWcEEYzyIp3DHpvnRFY+OAaNJy4VlGrPecgrwwgbg/qBu+IABIa5/XE MB6VR3rDdODDoBj9Qb7I+F3aaUGuv6P2LUqW8PiZxDMj6b13g9CRJL3qsiY6emhRYODD J6tGEWH30YnenomVB4vh9OM4q5E764cKtZM8nyjH9sbuJBp9KOE7NaL8pwYnE03/BBq8 41+RrUArdcvUBU/sO42N971kvkeZFDvcDtDhSAxCvZOW7HAQyYYplfNA/WQ0dBmKTW+5 wbaQ== 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=ll0oa75vwhrd/jX569DuLEC0YhlCdGYCCf3ViMztJWY=; b=LfYy213qG1l6NSyNGHDjTpUrzhbtoDmPA8K57M+4dpU5K4RZ84UDlDEtcJC9pzZMax TEE+Kzi6Vf2mhF16cPY0jXQx05KYVEmtWrMQAmgBlayI/QUQrMnJb2BAm2633xW7UG61 f+8YE6dQRy3rs2QUB4UI9EOnRSze+OfHQhk3YAj/qkpDgfuqqoBdg/rfJxl8h2EWKhxF TR265Dk77KlPdBL6xtmxTofZVGChtajOINuRi9l8oeFYVZzhOTsodOYSPV1VDh1nESJD ojmcAJU2czhMmcpYccQySEHw0zA+WiAjfeGN0gteQSOUmxIiIvusOHnwcYDBOIUZpjaj 1piQ== X-Gm-Message-State: AOAM530aXGs46P+gYOFqavFXbS8jWmWEYFSaeJ8pflylkyepQqRcxiPH jHQNaUaBbddxtCySLnebCuyI7waFsQpyqA== X-Received: by 2002:a05:6602:1644:: with SMTP id y4mr1123006iow.82.1633569767459; Wed, 06 Oct 2021 18:22:47 -0700 (PDT) Received: from Davids-MacBook-Pro.local ([8.48.134.30]) by smtp.googlemail.com with ESMTPSA id q6sm1549712ile.23.2021.10.06.18.22.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Oct 2021 18:22:47 -0700 (PDT) Subject: Re: [PATCH 08/11] selftests: net/fcnal: Replace sleep after server start with -k To: Leonard Crestez , Jakub Kicinski , Shuah Khan , David Ahern Cc: "David S. Miller" , Ido Schimmel , Seth David Schoen , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <43210038-b04b-3726-1355-d5f132f6c64e@gmail.com> From: David Ahern Message-ID: <888962dc-8d55-4875-cf44-c0b8ebaa1978@gmail.com> Date: Wed, 6 Oct 2021 19:22:45 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/6/21 3:35 PM, Leonard Crestez wrote: > > I counted the [FAIL] or [ OK ] markers but not the output of nettest > itself. I don't know what to look for, I guess I could diff the outputs? > > Shouldn't it be sufficient to compare the exit codes of the nettest client? mistakes happen. The 700+ tests that exist were verified by me when I submitted the script - that each test passes when it should and fails when it should. "FAIL" has many reasons. I tried to have separate exit codes for nettest.c to capture the timeouts vs ECONNREFUSED, etc., but I could easily have made a mistake. scanning the output is the best way. Most of the 'supposed to fail' tests have a HINT saying why it should fail. > > The output is also modified by a previous change to not capture server > output separately and instead let it be combined with that of the > client. That change is required for this one, doing out=$(nettest -k) > does not return on fork unless the pipe is also closed. > > I did not look at your change, mine is relatively minimal because it > only changes who decide when the server goes into the background: the > shell script or the server itself. This makes it work very easily even > for tests with multiple server instances. The logging issue is why I went with 1 binary do both server and client after nettest.c got support for changing namespaces.