googltest-color-test changes
This commit is contained in:
parent
6324796be1
commit
38486eb03e
@ -197,17 +197,17 @@ py_test(
|
|||||||
)
|
)
|
||||||
|
|
||||||
cc_binary(
|
cc_binary(
|
||||||
name = "gtest_color_test_",
|
name = "googletest-color-test_",
|
||||||
testonly = 1,
|
testonly = 1,
|
||||||
srcs = ["gtest_color_test_.cc"],
|
srcs = ["googletest-color-test_.cc"],
|
||||||
deps = ["//:gtest"],
|
deps = ["//:gtest"],
|
||||||
)
|
)
|
||||||
|
|
||||||
py_test(
|
py_test(
|
||||||
name = "gtest_color_test",
|
name = "googletest-color-test",
|
||||||
size = "small",
|
size = "small",
|
||||||
srcs = ["gtest_color_test.py"],
|
srcs = ["googletest-color-test.py"],
|
||||||
data = [":gtest_color_test_"],
|
data = [":googletest-color-test_"],
|
||||||
deps = [":gtest_test_utils"],
|
deps = [":gtest_test_utils"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ IS_WINDOWS = os.name == 'nt'
|
|||||||
|
|
||||||
COLOR_ENV_VAR = 'GTEST_COLOR'
|
COLOR_ENV_VAR = 'GTEST_COLOR'
|
||||||
COLOR_FLAG = 'gtest_color'
|
COLOR_FLAG = 'gtest_color'
|
||||||
COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_color_test_')
|
COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-color-test_')
|
||||||
|
|
||||||
|
|
||||||
def SetEnvVar(env_var, value):
|
def SetEnvVar(env_var, value):
|
||||||
@ -53,7 +53,7 @@ def SetEnvVar(env_var, value):
|
|||||||
|
|
||||||
|
|
||||||
def UsesColor(term, color_env_var, color_flag):
|
def UsesColor(term, color_env_var, color_flag):
|
||||||
"""Runs gtest_color_test_ and returns its exit code."""
|
"""Runs googletest-color-test_ and returns its exit code."""
|
||||||
|
|
||||||
SetEnvVar('TERM', term)
|
SetEnvVar('TERM', term)
|
||||||
SetEnvVar(COLOR_ENV_VAR, color_env_var)
|
SetEnvVar(COLOR_ENV_VAR, color_env_var)
|
Loading…
Reference in New Issue
Block a user