From 1be9abc1092780b53b23221a295110f90aee04cf Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 24 Oct 2018 13:11:33 -0700 Subject: [PATCH] Add link dependency on test package archive The test package archive was being picked up through "-L" + testRoot, but did not have a dependency on it. If the *_test.go file was changed but not the implementation then the tests would not be rerun. Test: Add t.Fatal() to a *_test.go file and rebuild. Change-Id: I32b8c7a0fa1d5b76b1242646887fe937e396e318 --- bootstrap/bootstrap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go index be156f9..ed33f20 100644 --- a/bootstrap/bootstrap.go +++ b/bootstrap/bootstrap.go @@ -561,7 +561,7 @@ func buildGoTest(ctx blueprint.ModuleContext, testRoot, testPkgArchive, Optional: true, }) - var linkDeps []string + linkDeps := []string{testPkgArchive} libDirFlags := []string{"-L " + testRoot} testDeps := []string{} ctx.VisitDepsDepthFirstIf(isGoPackageProducer,