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

Unified Diff: milo/appengine/job_source/buildbot/build_test.go

Issue 2944983003: [milo] {buildbucket,buildbot,swarming,logdog} -> backends/*. (Closed)
Patch Set: fix the tests Created 3 years, 6 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 | « milo/appengine/job_source/buildbot/build.go ('k') | milo/appengine/job_source/buildbot/builder.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/job_source/buildbot/build_test.go
diff --git a/milo/appengine/buildbot/build_test.go b/milo/appengine/job_source/buildbot/build_test.go
similarity index 96%
rename from milo/appengine/buildbot/build_test.go
rename to milo/appengine/job_source/buildbot/build_test.go
index 1eca5c0d0225c7b163881fe9f57293bcc3dc3dd9..d1a2a7fc35bbec64267c8998a332be4799640a66 100644
--- a/milo/appengine/buildbot/build_test.go
+++ b/milo/appengine/job_source/buildbot/build_test.go
@@ -51,7 +51,7 @@ func TestBuild(t *testing.T) {
if *generate {
for _, tc := range TestCases {
fmt.Printf("Generating expectations for %s/%s\n", tc.Builder, tc.Build)
- build, err := Build(c, "debug", tc.Builder, tc.Build)
+ build, err := DebugBuild(c, ".", tc.Builder, tc.Build)
if err != nil {
panic(fmt.Errorf("Could not run build() for %s/%s: %s", tc.Builder, tc.Build, err))
}
@@ -78,7 +78,7 @@ func TestBuild(t *testing.T) {
for _, tc := range TestCases {
Convey(fmt.Sprintf("Test Case: %s/%s", tc.Builder, tc.Build), func() {
- build, err := Build(c, "debug", tc.Builder, tc.Build)
+ build, err := DebugBuild(c, ".", tc.Builder, tc.Build)
So(err, ShouldBeNil)
fname := fmt.Sprintf("%s.%d.build.json", tc.Builder, tc.Build)
So(build, shouldMatchExpectationsFor, fname)
« no previous file with comments | « milo/appengine/job_source/buildbot/build.go ('k') | milo/appengine/job_source/buildbot/builder.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698