mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Refactor the test cleanup.
This commit is contained in:
11
test/test
11
test/test
@@ -1,15 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
# Clean up.
|
||||
rm -f *.actual
|
||||
|
||||
# Execute the tests.
|
||||
for testcase in test*.vim; do
|
||||
vim -N -u NONE -S $testcase -c 'quit!'
|
||||
|
||||
git reset HEAD fixture.txt > /dev/null
|
||||
git checkout fixture.txt
|
||||
|
||||
vim -N -u NONE -S $testcase -c 'quit!'
|
||||
done
|
||||
|
||||
# Verify the results.
|
||||
@@ -30,10 +27,6 @@ for expected in *.expected; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Clean up.
|
||||
git reset HEAD fixture.txt > /dev/null
|
||||
git checkout fixture.txt
|
||||
|
||||
# Print results.
|
||||
echo
|
||||
echo "$((count_ok + count_fail)) tests"
|
||||
|
||||
Reference in New Issue
Block a user