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:
Ed Santiago
2023-02-15 13:16:34 -07:00
parent d63d91694e
commit 86e55d0ec1
13 changed files with 117 additions and 112 deletions

View File

@ -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