[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190322110646.GA24257@e107981-ln.cambridge.arm.com>
Date: Fri, 22 Mar 2019 11:06:46 +0000
From: Lorenzo Pieralisi <lorenzo.pieralisi@....com>
To: Jean-Jacques Hiblot <jjhiblot@...com>
Cc: kishon@...com, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tools: PCI: exit with error code when test fails
On Thu, Sep 20, 2018 at 05:02:53PM +0200, Jean-Jacques Hiblot wrote:
> This makes it easier to use pcitest in automated setups.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@...com>
> ---
> tools/pci/pcitest.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to pci/misc for v5.2, thanks.
Lorenzo
> diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c
> index af146bb..5adc8cd 100644
> --- a/tools/pci/pcitest.c
> +++ b/tools/pci/pcitest.c
> @@ -143,6 +143,7 @@ static int run_test(struct pci_test *test)
> }
>
> fflush(stdout);
> + return (ret < 0) ? ret : 1 - ret; /* return 0 if test succeeded */
> }
>
> int main(int argc, char **argv)
> @@ -231,6 +232,5 @@ int main(int argc, char **argv)
> return -EINVAL;
> }
>
> - run_test(test);
> - return 0;
> + return run_test(test);
> }
> --
> 2.7.4
>
Powered by blists - more mailing lists