From 44070670c798d2cde2824f3150b2b11bf35c6319 Mon Sep 17 00:00:00 2001 From: Emma Foley Date: Thu, 2 Nov 2017 16:50:14 +0000 Subject: Tox: add a pep8 target Adds a pep8, pep8-full targets to tox: * pep8 target: runs pylint on the changed files * pep8-full target: runs pylint on whole repo Adds scripts to run pylint: * stored in tools/ Documentation: changeed the command for running tests (run_tests.sh -> tox). This runs the same set of tests as before. JIRA: YARDSTICK-832 Change-Id: I652da87723682d958f3fcbc2eb4cd88422636a3b Signed-off-by: Emma Foley --- run_tests.sh | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'run_tests.sh') diff --git a/run_tests.sh b/run_tests.sh index b3cbfb127..097935890 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -22,27 +22,6 @@ export PY_VER COVER_DIR_NAME="./tests/ci/" export COVER_DIR_NAME -run_flake8() { - echo "Running flake8 ... " - logfile=test_results.log - if [ $FILE_OPTION == "f" ]; then - flake8 yardstick > $logfile - else - flake8 yardstick - fi - - if [ $? -ne 0 ]; then - echo "FAILED" - if [ $FILE_OPTION == "f" ]; then - echo "Results in $logfile" - fi - exit 1 - else - echo "OK" - fi -} - - run_tests() { echo "Get external libs needed for unit test" @@ -90,7 +69,6 @@ run_functional_test() { } -run_flake8 run_tests run_coverage run_functional_test -- cgit 1.2.3-korg