diff options
-rwxr-xr-x | check | 10 | ||||
-rw-r--r-- | ick_controller.py | 3 |
2 files changed, 12 insertions, 1 deletions
@@ -33,6 +33,7 @@ title() title Unit tests python3 -m CoverageTestRunner --ignore-missing-from=without-tests ick2 + if [ -e .git ] then sources="$(git ls-files | grep -Fvxf copyright-exceptions)" @@ -44,6 +45,11 @@ then ./is-agpl3+ $sources fi +python_sources="ick_controller.py worker-manager ick2" + +title pycodestyle +pycodestyle ick2 $python_sources + title Yarns yarn yarns/*.yarn \ --shell python2 \ @@ -51,3 +57,7 @@ yarn yarns/*.yarn \ --shell-library yarns/lib.py \ --cd-datadir \ "$@" + + +title OK +echo "All tests pass" diff --git a/ick_controller.py b/ick_controller.py index 5fc44c5..0957ae6 100644 --- a/ick_controller.py +++ b/ick_controller.py @@ -15,7 +15,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. - import os @@ -29,6 +28,8 @@ import ick2 transactions = slog.Counter() + + def counter(): return 'HTTP transaction {}'.format(transactions.increment()) |