Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb237088 authored by Jingwen Chen's avatar Jingwen Chen
Browse files

Actually run gensrcs_conversion_test.

And fix expected bazel target generation -- makeBazelTarget generates a
target_compatible_with, which is not in the expected attrs, causing
tests to fail.

Test: CI
Change-Id: Iddb9b6a7edf99d1f11043b4e77fdd3f256f3d7f2
parent fdc05407
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ bootstrap_go_package {
        "conversion_test.go",
        "filegroup_conversion_test.go",
        "genrule_conversion_test.go",
        "gensrcs_conversion_test.go",
        "java_binary_host_conversion_test.go",
        "java_import_conversion_test.go",
        "java_library_conversion_test.go",
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ func TestGensrcs(t *testing.T) {

	for _, test := range testcases {
		expectedBazelTargets := []string{
			makeBazelTarget("gensrcs", "foo", test.expectedBazelAttrs),
			makeBazelTargetNoRestrictions("gensrcs", "foo", test.expectedBazelAttrs),
		}
		t.Run(test.name, func(t *testing.T) {
			runBp2BuildTestCase(t, func(ctx android.RegistrationContext) {},