[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201118151956.277f7fec@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net>
Date: Wed, 18 Nov 2020 15:19:56 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Willem de Bruijn <willemdebruijn.kernel@...il.com>
Cc: Antonio Cardace <acardace@...hat.com>,
Network Development <netdev@...r.kernel.org>,
"David S . Miller" <davem@...emloft.net>,
Michal Kubecek <mkubecek@...e.cz>,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH net-next v3 4/4] selftests: add ring and coalesce
selftests
On Wed, 18 Nov 2020 16:43:33 -0500 Willem de Bruijn wrote:
> On Tue, Nov 17, 2020 at 12:19 PM Jakub Kicinski <kuba@...nel.org> wrote:
> > Sorry I misremembered it's 4. We can leave that as is.
>
> Instead of having to remember, maybe we should have a file in
> tools/testing/selftest to define constants?
>
> I defined them one-off in tools/testing/selftests/net/udpgso_bench.sh
>
> readonly KSFT_PASS=0
> readonly KSFT_FAIL=1
> readonly KSFT_SKIP=4
>
> along with some other kselftest shell support infra. But having each
> test figure this out independently is duplicative and error prone.
Sounds like a good idea, I was surprised it wasn't already defined in
any lib.
CCing the selftest ML.
Powered by blists - more mailing lists