Move some implicitly shared testing code for bp2build into testing.go.
Test: go test Change-Id: I403d703184e517dbffbdccb8007229cad00858c1
This commit is contained in:
@@ -228,11 +228,11 @@ cc_object {
|
||||
ctx.RegisterForBazelConversion()
|
||||
|
||||
_, errs := ctx.ParseFileList(dir, toParse)
|
||||
if Errored(t, testCase.description, errs) {
|
||||
if errored(t, testCase.description, errs) {
|
||||
continue
|
||||
}
|
||||
_, errs = ctx.ResolveDependencies(config)
|
||||
if Errored(t, testCase.description, errs) {
|
||||
if errored(t, testCase.description, errs) {
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -411,11 +411,11 @@ func TestCcObjectConfigurableAttributesBp2Build(t *testing.T) {
|
||||
ctx.RegisterForBazelConversion()
|
||||
|
||||
_, errs := ctx.ParseFileList(dir, toParse)
|
||||
if Errored(t, testCase.description, errs) {
|
||||
if errored(t, testCase.description, errs) {
|
||||
continue
|
||||
}
|
||||
_, errs = ctx.ResolveDependencies(config)
|
||||
if Errored(t, testCase.description, errs) {
|
||||
if errored(t, testCase.description, errs) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user