aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-09-27 13:19:01 -0400
committerTeddy Wing2015-09-27 13:19:01 -0400
commit50631f85e73eda9d6738f5993ff5cf26198f8697 (patch)
tree8eeaab6fe320cf7dba873e7c4652b4e1f430cf8f
parent7096e275b8d2d78ecfbb8d53f22086fd0e8d0605 (diff)
downloadgit-hook-pre-commit-python-javascript-syntax-linter-50631f85e73eda9d6738f5993ff5cf26198f8697.tar.bz2
t/100-python.t: Perform a `git reset` at test's end
Ensure we reset the staging area as a teardow/cleanup operation. Otherwise, our JavaScript test (which runs after this one by default) will be working with a dirty staging area and its test will by consequence not pass.
-rw-r--r--t/100-python.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/100-python.t b/t/100-python.t
index 09266bd..677924b 100644
--- a/t/100-python.t
+++ b/t/100-python.t
@@ -26,4 +26,7 @@ test.py:3:80: E501 line too long (97 > 79 characters)
test.py:5:31: E225 missing whitespace around operator
", 'flake8 ran on committed Python file';
+$output = `git reset`;
+ok !$?;
+
done_testing;