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

Side by Side Diff: task_scheduler/go/parse_task_cfg/main.go

Issue 2296763008: [task scheduler] Move files from build_scheduler/ to task_scheduler/ (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « task_scheduler/go/db/testutil.go ('k') | task_scheduler/go/scheduling/cache_wrapper.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 package main 1 package main
2 2
3 /* 3 /*
4 Convenience program for verification of task config files. 4 Convenience program for verification of task config files.
5 */ 5 */
6 6
7 import ( 7 import (
8 "flag" 8 "flag"
9 "io/ioutil" 9 "io/ioutil"
10 10
11 "github.com/skia-dev/glog" 11 "github.com/skia-dev/glog"
12 "go.skia.org/infra/build_scheduler/go/task_scheduler"
13 "go.skia.org/infra/go/common" 12 "go.skia.org/infra/go/common"
13 "go.skia.org/infra/task_scheduler/go/scheduling"
14 ) 14 )
15 15
16 var ( 16 var (
17 cfgFile = flag.String("cfg_file", "", "Config file to parse.") 17 cfgFile = flag.String("cfg_file", "", "Config file to parse.")
18 ) 18 )
19 19
20 func main() { 20 func main() {
21 common.Init() 21 common.Init()
22 defer common.LogPanic() 22 defer common.LogPanic()
23 23
24 b, err := ioutil.ReadFile(*cfgFile) 24 b, err := ioutil.ReadFile(*cfgFile)
25 if err != nil { 25 if err != nil {
26 glog.Fatal(err) 26 glog.Fatal(err)
27 } 27 }
28 » if _, err := task_scheduler.ParseTasksCfg(string(b)); err != nil { 28 » if _, err := scheduling.ParseTasksCfg(string(b)); err != nil {
29 glog.Fatal(err) 29 glog.Fatal(err)
30 } 30 }
31 } 31 }
OLDNEW
« no previous file with comments | « task_scheduler/go/db/testutil.go ('k') | task_scheduler/go/scheduling/cache_wrapper.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698