Re: [PATCH 2/3] t7005: sanitize test environment for subsequent tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 10, 2025 at 3:54 PM Ben Knoble <ben.knoble@xxxxxxxxx> wrote:
> > Le 10 août 2025 à 15:44, Phillip Wood <phillip.wood123@xxxxxxxxx> a écrit :
> >> +            git show -s --pretty=oneline >show &&
> >> +            <show sed -e "s/^[0-9a-f]* //" >actual &&
> >> +            test_cmp expect actual
> >
> > We need to add "|| return 1" to the last line here and in the test below to reliably error out when test_cmp fails. I'd have thought that our test linting should hove picked this up but maybe it is confused by the subshell
>
> PS I think it’a actually “exit 1” in this case?

Indeed, it should be `|| exit 1` since this is inside a subshell.

(I was just about to respond to Phillip's email but continued reading
the thread and saw that you correctly mentioned `|| exit 1` already.
Thanks.)





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux