Adding support to override test size to avoid hitting test runner time limits.

Change-Id: I3844bfba7b64a856e8ed4c3db5d8363880bb9b9e
This commit is contained in:
Thomas Vachuska 2018-08-07 11:24:40 -07:00
parent 24e85d155c
commit a79bf6e178
2 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,7 @@ osgi_jar_with_tests(
bundle_classpath = get_openstack4j_deps_path() + get_jackson_deps_path(), bundle_classpath = get_openstack4j_deps_path() + get_jackson_deps_path(),
import_packages = INCLUDE_PACKAGES + "," + EXCLUDE_PACKAGES + "," + ALL_PACKAGES, import_packages = INCLUDE_PACKAGES + "," + EXCLUDE_PACKAGES + "," + ALL_PACKAGES,
test_deps = TEST_DEPS, test_deps = TEST_DEPS,
medium_tests = ["src/test/java/org/onosproject/openstacknetworking/util/OpenstackNetworkingUtilTest"],
web_context = "/onos/openstacknetworking", web_context = "/onos/openstacknetworking",
deps = COMPILE_DEPS, deps = COMPILE_DEPS,
) )

View File

@ -375,6 +375,10 @@ def osgi_jar_with_tests(
include_resources = {}, include_resources = {},
test_srcs = None, test_srcs = None,
exclude_tests = None, exclude_tests = None,
medium_tests = [],
large_tests = [],
enormous_tests = [],
flaky_tests = [],
test_resources = None, test_resources = None,
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
version = ONOS_VERSION, version = ONOS_VERSION,
@ -494,6 +498,9 @@ def osgi_jar_with_tests(
name = name + "-tests-gen", name = name + "-tests-gen",
test_files = test_srcs, test_files = test_srcs,
exclude_tests = exclude_tests, exclude_tests = exclude_tests,
medium_tests = medium_tests,
large_tests = large_tests,
enormous_tests = enormous_tests,
deps = all_test_deps, deps = all_test_deps,
) )