From 6ad8eb01ae516aa4e5850fe1349fdedac4aa6878 Mon Sep 17 00:00:00 2001 From: Norbert Illes Date: Wed, 24 Feb 2016 14:48:49 +0100 Subject: [PATCH] Move syntax-check test to tox.ini This commit moves the syntax-check test from a make target to tox.ini Change-Id: Id15320c589afea2b3a4a5cff5e7fa9c5c2b9d0b8 Signed-off-by: Norbert Illes --- Makefile | 3 --- tox.ini | 7 ++++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 96395dc..22e75fa 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,3 @@ install: for file in ocf/*; do \ $(INSTALL) -t $(DESTDIR)/usr/lib/ocf/resource.d/openstack -m 0755 $${file} ; \ done - -syntax-check: - utils/syntax_check.sh -a -p diff --git a/tox.ini b/tox.ini index 790ea29..e0da2d9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = bashate +envlist = bashate,syntax-check skipsdist = True [testenv] @@ -9,3 +9,8 @@ whitelist_externals = bash deps = bashate commands = bash -c "bashate --verbose {toxinidir}/ocf/*" +[testenv:syntax-check] +setenv = + CHECK_PATH = {toxinidir}/ocf +commands = bash -c "{toxinidir}/utils/syntax_check.sh -a -p" +