diff options
author | 2017-11-02 16:50:14 +0000 | |
---|---|---|
committer | 2017-11-17 17:18:30 +0000 | |
commit | 44070670c798d2cde2824f3150b2b11bf35c6319 (patch) | |
tree | 5349fca98fa3a01ddd3f50f49847e0ced1c37528 /run_tests.sh | |
parent | b22b09d3e58bc01105165434a1220f581d6ab31b (diff) |
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 <emma.l.foley@intel.com>
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 22 |
1 files changed, 0 insertions, 22 deletions
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 |