mirror of https://github.com/containers/podman.git
system tests: prevent leading tabs
Replace existing tab indentations with spaces, and add a test to CI to prevent new ones from sneaking in. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
d63d91694e
commit
86e55d0ec1
|
@ -28,6 +28,11 @@ msg "Checking Cirrus YAML"
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
showrun $SCRIPT_BASE/cirrus_yaml_test.py
|
showrun $SCRIPT_BASE/cirrus_yaml_test.py
|
||||||
|
|
||||||
|
msg "Checking for leading tabs in system tests"
|
||||||
|
if grep -n ^$'\t' test/system/*; then
|
||||||
|
die "Found leading tabs in system tests. Use spaces to indent, not tabs."
|
||||||
|
fi
|
||||||
|
|
||||||
# Defined by CI config.
|
# Defined by CI config.
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
if [[ "${DISTRO_NV}" =~ fedora ]]; then
|
if [[ "${DISTRO_NV}" =~ fedora ]]; then
|
||||||
|
|
Loading…
Reference in New Issue