Rename runPythonTestCase
To runBp2BuildTestCaseSimple because it's not Python-specific but rather Bp2Build-specific Name is suboptimal but given current functionality and use we couldn't come up with a better one. Test: Existing tests pass Change-Id: I641cd051af741836b21ec6a7d6639516fb13028f
This commit is contained in:
parent
1c92aeff4e
commit
ce0a07e249
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func TestPythonBinaryHostSimple(t *testing.T) {
|
||||
runPythonTestCase(t, bp2buildTestCase{
|
||||
runBp2BuildTestCaseSimple(t, bp2buildTestCase{
|
||||
description: "simple python_binary_host converts to a native py_binary",
|
||||
moduleTypeUnderTest: "python_binary_host",
|
||||
moduleTypeUnderTestFactory: python.PythonBinaryHostFactory,
|
||||
|
@ -43,7 +43,7 @@ func TestPythonBinaryHostSimple(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestPythonBinaryHostPy2(t *testing.T) {
|
||||
runPythonTestCase(t, bp2buildTestCase{
|
||||
runBp2BuildTestCaseSimple(t, bp2buildTestCase{
|
||||
description: "py2 python_binary_host",
|
||||
moduleTypeUnderTest: "python_binary_host",
|
||||
moduleTypeUnderTestFactory: python.PythonBinaryHostFactory,
|
||||
|
@ -73,7 +73,7 @@ func TestPythonBinaryHostPy2(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestPythonBinaryHostPy3(t *testing.T) {
|
||||
runPythonTestCase(t, bp2buildTestCase{
|
||||
runBp2BuildTestCaseSimple(t, bp2buildTestCase{
|
||||
description: "py3 python_binary_host",
|
||||
moduleTypeUnderTest: "python_binary_host",
|
||||
moduleTypeUnderTestFactory: python.PythonBinaryHostFactory,
|
||||
|
|
|
@ -28,7 +28,7 @@ func errored(t *testing.T, desc string, errs []error) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func runPythonTestCase(t *testing.T, tc bp2buildTestCase) {
|
||||
func runBp2BuildTestCaseSimple(t *testing.T, tc bp2buildTestCase) {
|
||||
t.Helper()
|
||||
runBp2BuildTestCase(t, func(ctx android.RegistrationContext) {}, tc)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue