Skip to content

Commit 1ea333a

Browse files
committed
Speed up indentation tests on Vim
1 parent 7659541 commit 1ea333a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dev/do/test-indent

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ if [ "$EDITOR" != 'vim' ] && [ "$EDITOR" != 'nvim' ]; then
99
exit 1
1010
fi
1111

12+
if [ "$EDITOR" = 'vim' ]; then
13+
editor_opts=('--not-a-term')
14+
else
15+
editor_opts=()
16+
fi
17+
1218
PASSED=()
1319
FAILED=()
1420
SKIPPED=()
@@ -51,7 +57,7 @@ run_test_case() {
5157
test_cmd=('+normal! gg=G')
5258
fi
5359

54-
"$EDITOR" --clean -NXnu test-vimrc.vim "${test_cmd[@]}" '+xall!' -- "$actual_file"
60+
"$EDITOR" "${editor_opts[@]}" --clean -NXnu test-vimrc.vim "${test_cmd[@]}" '+xall!' -- "$actual_file"
5561

5662
diff --color=always -u "$expected_file" "$actual_file"
5763

0 commit comments

Comments
 (0)