aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xtools/check-pylint4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c304c0c..d6e393f 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ clean:
rm -rf $(OBJDIR)
check-pylint:
- pylint --rcfile=.pylint.rc -j 0 $(PYTHONFILES) || ./tools/check-pylint
+ pylint --rcfile=.pylint.rc -j 0 $(PYTHONFILES) || ./tools/check-pylint $$?
format:
yapf -i $(PYTHONFILES)
diff --git a/tools/check-pylint b/tools/check-pylint
index 0462f25..9b7c7e5 100755
--- a/tools/check-pylint
+++ b/tools/check-pylint
@@ -1,8 +1,8 @@
#!/bin/bash
-PYLINT_EXIT=$?
-# pylint error masks
+PYLINT_EXIT=${1}
+# pylint error masks
FATAL_MASK=1
ERROR_MASK=2
WARNING_MASK=4