aboutsummaryrefslogtreecommitdiffstats
path: root/android/namespace_test.go
diff options
context:
space:
mode:
authorLogan Chien <loganchien@google.com>2018-03-12 16:29:17 +0800
committerLogan Chien <loganchien@google.com>2018-03-15 11:02:38 +0800
commit4203971351ac8701c00c05252839221d13fbf3d0 (patch)
tree1ac57bf84e9a7ca349a79e9b072c6a46076a7b55 /android/namespace_test.go
parent9c6bc37da1dd47ff61e324f2b477e9e3d7a98a99 (diff)
downloadbuild_soong-4203971351ac8701c00c05252839221d13fbf3d0.tar.gz
build_soong-4203971351ac8701c00c05252839221d13fbf3d0.tar.bz2
build_soong-4203971351ac8701c00c05252839221d13fbf3d0.zip
Extract failIfErrored() to android/testing.go
Bug: 74506774 Test: lunch aosp_walleye-userdebug && make # runs unit tests Change-Id: I1c09412d5988dca2cc1c5f041893b313ab1c163a
Diffstat (limited to 'android/namespace_test.go')
-rw-r--r--android/namespace_test.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/android/namespace_test.go b/android/namespace_test.go
index a6fc9d59..8bec0add 100644
--- a/android/namespace_test.go
+++ b/android/namespace_test.go
@@ -628,7 +628,7 @@ func setupTestExpectErrs(bps map[string]string) (ctx *TestContext, errs []error)
func setupTest(t *testing.T, bps map[string]string) (ctx *TestContext) {
ctx, errs := setupTestExpectErrs(bps)
- failIfErrored(t, errs)
+ FailIfErrored(t, errs)
return ctx
}
@@ -692,12 +692,3 @@ func newTestModule() Module {
InitAndroidModule(m)
return m
}
-
-func failIfErrored(t *testing.T, errs []error) {
- if len(errs) > 0 {
- for _, err := range errs {
- t.Error(err)
- }
- t.FailNow()
- }
-}