From 7f70d520ec41305f2fe75f41f63fc611ba7547d8 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 14 Nov 2014 14:35:24 +0100 Subject: [PATCH] Refactor the test cleanup. --- test/test | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test/test b/test/test index cac537b..453aa9b 100755 --- a/test/test +++ b/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"