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