diff --git a/nox.py b/nox.py index c330541ff2a..8321bf4c106 100644 --- a/nox.py +++ b/nox.py @@ -25,7 +25,8 @@ '-x', '--no-success-flaky-report', '--cov', '--cov-config', '.coveragerc', '--cov-append', '--cov-report='] -SESSION_TESTS_BLACKLIST = set(('appengine', 'testing')) +# Speech is temporarily disabled. +SESSION_TESTS_BLACKLIST = set(('appengine', 'testing', 'speech')) def session_lint(session): @@ -121,9 +122,15 @@ def session_gae(session, extra_pytest_args=None): success_codes=[0, 5]) # Treat no test collected as success. -def session_travis(session): +@nox.parametrize('subsession', ['gae', 'tests']) +def session_travis(session, subsession): """On travis, just run with python3.4 and don't run slow or flaky tests.""" - session_tests( - session, 'python3.4', extra_pytest_args=['-m not slow and not flaky']) - session_gae( - session, extra_pytest_args=['-m not slow and not flaky']) + if subsession == 'tests': + session_tests( + session, + 'python3.4', + extra_pytest_args=['-m not slow and not flaky']) + else: + session_gae( + session, + extra_pytest_args=['-m not slow and not flaky']) diff --git a/storage/api/customer_supplied_keys_test.py b/storage/api/customer_supplied_keys_test.py index ec4ec0b5031..85062e642e5 100644 --- a/storage/api/customer_supplied_keys_test.py +++ b/storage/api/customer_supplied_keys_test.py @@ -14,8 +14,10 @@ import re from customer_supplied_keys import main +from gcp.testing.flaky import flaky +@flaky def test_main(cloud_config, capsys): main(cloud_config.storage_bucket, __file__) out, err = capsys.readouterr()