Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1826)

Unified Diff: appengine/cmd/milo/buildbot/build.go

Issue 2150933004: milo: dedup testdata (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/cmd/milo/README.md ('k') | appengine/cmd/milo/buildbot/testdata/CrWinGoma.30608.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cmd/milo/buildbot/build.go
diff --git a/appengine/cmd/milo/buildbot/build.go b/appengine/cmd/milo/buildbot/build.go
index 3def8f059824625d9794a288c3ea7a9c83f1b91a..e27e43dbdc8d4ccc7cb92d32a203065ed5866e96 100644
--- a/appengine/cmd/milo/buildbot/build.go
+++ b/appengine/cmd/milo/buildbot/build.go
@@ -377,7 +377,10 @@ func sourcestamp(c context.Context, b *buildbotBuild) *resp.SourceStamp {
func getDebugBuild(c context.Context, builder, buildNum string) (*buildbotBuild, error) {
fname := fmt.Sprintf("%s.%s.json", builder, buildNum)
- path := filepath.Join("testdata", "buildbot", fname)
+ // ../buildbot below assumes that
+ // - this code is not executed by tests outside of this dir
+ // - this dir is a sibling of frontend dir
+ path := filepath.Join("..", "buildbot", "testdata", fname)
raw, err := ioutil.ReadFile(path)
if err != nil {
return nil, err
« no previous file with comments | « appengine/cmd/milo/README.md ('k') | appengine/cmd/milo/buildbot/testdata/CrWinGoma.30608.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698