[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMy_GT-qqhgHFzW7wuzz__Ly3Eu4oEHx-RrA9KO-mhVqO2AokA@mail.gmail.com>
Date: Fri, 10 Dec 2021 15:16:06 +0800
From: Po-Hsu Lin <po-hsu.lin@...onical.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org, davem@...emloft.net,
skhan@...uxfoundation.org
Subject: Re: [PATCH] selftests: icmp_redirect: pass xfail=0 to log_test() for
non-xfail cases
On Fri, Dec 10, 2021 at 10:46 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Wed, 8 Dec 2021 15:11:51 +0800 Po-Hsu Lin wrote:
> > If any sub-test in this icmp_redirect.sh is failing but not expected
> > to fail. The script will complain:
> > ./icmp_redirect.sh: line 72: [: 1: unary operator expected
> >
> > This is because when the sub-test is not expected to fail, we won't
> > pass any value for the xfail local variable in log_test() and thus
> > it's empty. Fix this by passing 0 as the 4th variable to log_test()
> > for non-xfail cases.
> >
> > Signed-off-by: Po-Hsu Lin <po-hsu.lin@...onical.com>
>
> Thanks, could you please add a fixes tag (even if the breakage is only
> present in linux-next) and CC David Ahern on v2?
Sure thing,
I will add fixes tag for this commit:
0a36a75c selftests: icmp_redirect: support expected failures
thanks for the feedback.
Powered by blists - more mailing lists