tests: run mvdan/shfmt on test runs
While I do not agree with _every_ style change, this will force Dokku to have consistent formatting across all shell scripts, which is arguably a Good Thing™. The command used to reprocess everything is: ```shell shfmt -l -bn -ci -i 2 -w . ```
This commit is contained in:
@@ -46,7 +46,7 @@ main() {
|
||||
TMP_OUTPUT=$(mktemp "/tmp/${FUNCNAME[0]}.XXXX")
|
||||
trap 'rm -rf "$TMP_OUTPUT" > /dev/null' RETURN INT TERM EXIT
|
||||
|
||||
/usr/local/libexec/bats-preprocess < "$TEST_FILE" > "$TMP_OUTPUT"
|
||||
/usr/local/libexec/bats-preprocess <"$TEST_FILE" >"$TMP_OUTPUT"
|
||||
AVAILABLE_TESTS="$(fn-available-tests "$TMP_OUTPUT")"
|
||||
MATCHED_TEST=$(fn-matched-test "$TEST_NAME" "$AVAILABLE_TESTS")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user