[SSSD] [PATCH v3] Remove trailing whitespace

Nikolai Kondrashov Nikolai.Kondrashov at redhat.com
Tue Sep 1 12:36:55 UTC 2015


On 08/31/2015 09:59 AM, Lukas Slebodnik wrote:
> diff --git a/src/tests/whitespace_test b/src/tests/whitespace_test
> new file mode 100755
> index 0000000000000000000000000000000000000000..508fe2d532cc6a3967af8eaa5c7dc4dccdc653f3
> --- /dev/null
> +++ b/src/tests/whitespace_test
> @@ -0,0 +1,32 @@
> +#!/bin/bash
> +
> +set -e -u -o pipefail
> +
> +# An AWK regex matching tracked file paths to be excluded from the search.
> +# Example: '.*\.po|README'
> +PATH_EXCLUDE_REGEX='.*\.po|.*\.patch|.*\.diff'

I suggest we also add '|/debian/.*' here to keep the downstream happy.
Although it theoretically should be done in their own repo, we can make life
simpler to them.

> +
> +export GIT_DIR="$ABS_TOP_SRCDIR/.git"
> +export GIT_WORK_TREE="$ABS_TOP_SRCDIR"
> +
> +if [ ! -d "$GIT_DIR" ]; then
> +    echo "Git repository is required for this test!"
> +    exit 77
> +fi

Strictly speaking, this message should be output to stderr, but that doesn't
make much difference here.

Nick


More information about the sssd-devel mailing list