提交 a8851f2d 编写于 作者: B Ben Mehne 提交者: Facebook GitHub Bot

Fix coverage for internal_repo_rocksdb

Summary:
tcc gtest runner need to know the location of the binary in order to collect coverage.  We can give them the location in an environment variable.

Note that all these tests will break in tpx currently, though this is a bug in rocksdb's wrapper script, not tpx.

Reviewed By: siying

Differential Revision: D20430043

fbshipit-source-id: c77d5f70bbc28f6011c6f91906bce2ceecc2f167
上级 2ccb794e
......@@ -35,8 +35,11 @@ def test_binary(
external_deps = rocksdb_external_deps,
)
binary_path = "$(location :{})".format(test_bin)
custom_unittest(
name = test_name,
command = [TEST_RUNNER, "$(location :{})".format(test_bin)],
command = [TEST_RUNNER, binary_path],
type = ttype,
env = {"BUCK_BASE_BINARY": binary_path},
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册