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

Unified Diff: client/cmd/kitchen/recipe.go

Issue 2055283002: kitchen: CURRENT_TIMESTAMP support (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Created 4 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 | « client/cmd/kitchen/cook.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cmd/kitchen/recipe.go
diff --git a/client/cmd/kitchen/recipe.go b/client/cmd/kitchen/recipe.go
index 82d11551af682d695bf93bcbf8f369de7995f8ea..af88216e21a673ca5918422eb73dadb059d85b88 100644
--- a/client/cmd/kitchen/recipe.go
+++ b/client/cmd/kitchen/recipe.go
@@ -41,6 +41,7 @@ type recipeRun struct {
propertiesFile string
outputResultJSONFile string
workDir string // Where to run the recipe.
+ timestamps bool // Whether to print CURRENT_TIMESTAMP annotations.
}
// Command creates a exec.Cmd for running a recipe.
@@ -67,8 +68,12 @@ func (r *recipeRun) Command() (*exec.Cmd, error) {
"--properties-file", r.propertiesFile,
"--workdir", r.workDir,
"--output-result-json", r.outputResultJSONFile,
- r.recipe,
)
+ if r.timestamps {
+ cmd.Args = append(cmd.Args, "--timestamps")
+ }
+ cmd.Args = append(cmd.Args, r.recipe)
+
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd, nil
« no previous file with comments | « client/cmd/kitchen/cook.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698