Share runBp2BuildTestCase & runPythonTestCase

Pull along bp2buildTestCase as well
Because none are specific to their current hosts

Move `errored` up to the "generic" block vs.
the "custom" block

Test: Existing tests pass
Change-Id: Ie8d5322a5554ebd88f0c142a4c541791687be326
This commit is contained in:
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux
2021-08-23 16:10:00 +00:00
parent b3c68004af
commit 1c92aeff4e
4 changed files with 83 additions and 83 deletions

View File

@@ -3,15 +3,9 @@ package bp2build
import (
"testing"
"android/soong/android"
"android/soong/python"
)
func runPythonTestCase(t *testing.T, tc bp2buildTestCase) {
t.Helper()
runBp2BuildTestCase(t, func(ctx android.RegistrationContext) {}, tc)
}
func TestPythonBinaryHostSimple(t *testing.T) {
runPythonTestCase(t, bp2buildTestCase{
description: "simple python_binary_host converts to a native py_binary",