Re: [PATCH] tests: misc/sort-exit-early: do not run as root.
From:
Pádraig Brady
Subject:
Re: [PATCH] tests: misc/sort-exit-early: do not run as root.
Date:
Thu, 30 Aug 2012 02:50:56 +0100
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0
On 08/29/2012 11:02 PM, Nick Alcock wrote:
> This test requires an unwritable input and an unreadable output,
> so will fail if the testsuite is being run as root, and should
> not be run in this case.
> ---
> tests/misc/sort-exit-early | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/misc/sort-exit-early b/tests/misc/sort-exit-early
> index 7470aad..b83a489 100755
> --- a/tests/misc/sort-exit-early
> +++ b/tests/misc/sort-exit-early
> @@ -19,6 +19,8 @@
> . "${srcdir=.}/init.sh"; path_prepend_ ../src
> print_ver_ sort
>
> +skip_if_root_
> +
> # Check output is writable before starting to sort
> touch input
> chmod a-w input
Pushed.
thanks,
Pádraig.