This is an automated email from the ASF dual-hosted git repository. bbannier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 674bce1140c3b4ea45bf352dec39f47ffa95f356 Author: Benjamin Bannier <[email protected]> AuthorDate: Mon Mar 4 09:07:17 2019 +0100 Added tox invocation to test stage. This patch also removes a redundant printout which was not properly synchronized with the test execution's output and would have appeared at the incorrect time. Review: https://reviews.apache.org/r/70091/ --- src/python/cli_new/bin/mesos-cli-tests | 4 ++++ src/python/cli_new/pip-requirements.txt | 2 +- src/python/cli_new/tests/main.py | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/python/cli_new/bin/mesos-cli-tests b/src/python/cli_new/bin/mesos-cli-tests index 9157d49..cd0e1e8 100755 --- a/src/python/cli_new/bin/mesos-cli-tests +++ b/src/python/cli_new/bin/mesos-cli-tests @@ -1,5 +1,9 @@ #!/usr/bin/env bash +set -e + CURRDIR="$(cd "$(dirname "$0")" && pwd)" +tox -c ${CURRDIR}/../tox.ini -e py3-lint + python ${CURRDIR}/../tests/main.py "$@" diff --git a/src/python/cli_new/pip-requirements.txt b/src/python/cli_new/pip-requirements.txt index 663f774..4f512a4 100644 --- a/src/python/cli_new/pip-requirements.txt +++ b/src/python/cli_new/pip-requirements.txt @@ -11,8 +11,8 @@ Pygments==2.1.3 PyInstaller==3.4 six==1.10.0 tenacity==4.12.0 -termcolor==1.1.0 toml==0.9.2 wrapt==1.10.8 +tox==3.2.1 -e ../lib diff --git a/src/python/cli_new/tests/main.py b/src/python/cli_new/tests/main.py index ef02fdd..5c47a86 100644 --- a/src/python/cli_new/tests/main.py +++ b/src/python/cli_new/tests/main.py @@ -21,8 +21,6 @@ This is the main executable of the mesos-cli unit tests. import os import unittest -from termcolor import colored - from cli.tests import CLITestCase # pylint: disable=unused-import @@ -36,5 +34,4 @@ if __name__ == '__main__': os.environ["MESOS_CLI_CONFIG"] = os.path.join(os.path.dirname(__file__), "default_config.toml") - print(colored("Running the Mesos CLI unit tests", "yellow")) unittest.main(verbosity=2, testRunner=unittest.TextTestRunner)
