mirror of
https://github.com/containers/podman.git
synced 2025-05-22 17:46:52 +08:00
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:
@ -28,6 +28,11 @@ msg "Checking Cirrus YAML"
|
||||
# shellcheck disable=SC2154
|
||||
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.
|
||||
# shellcheck disable=SC2154
|
||||
if [[ "${DISTRO_NV}" =~ fedora ]]; then
|
||||
|
Reference in New Issue
Block a user