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

Side by Side Diff: build_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 | « build_scheduler/go/db/testutil.go ('k') | build_scheduler/go/task_scheduler/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
(Empty)
1 package main
2
3 /*
4 Convenience program for verification of task config files.
5 */
6
7 import (
8 "flag"
9 "io/ioutil"
10
11 "github.com/skia-dev/glog"
12 "go.skia.org/infra/build_scheduler/go/task_scheduler"
13 "go.skia.org/infra/go/common"
14 )
15
16 var (
17 cfgFile = flag.String("cfg_file", "", "Config file to parse.")
18 )
19
20 func main() {
21 common.Init()
22 defer common.LogPanic()
23
24 b, err := ioutil.ReadFile(*cfgFile)
25 if err != nil {
26 glog.Fatal(err)
27 }
28 if _, err := task_scheduler.ParseTasksCfg(string(b)); err != nil {
29 glog.Fatal(err)
30 }
31 }
OLDNEW
« no previous file with comments | « build_scheduler/go/db/testutil.go ('k') | build_scheduler/go/task_scheduler/cache_wrapper.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698