You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/list.go
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,18 @@ var listCmd = &cobra.Command{
31
31
}
32
32
33
33
funcinit() {
34
+
flags:=listCmd.Flags()
35
+
// shardPattern is 1-based (1/10, 3/10, 10/10) rather than normal computer 0-based (0/9, 2/9, 9/9), because it is easier for
36
+
// humans to understand when calling the CLI.
37
+
flags.StringVarP(&shardPattern, "shard", "s", "", "which shard to run, in form of 'N/M' where N is the shard number and M is the total number of shards, smallest shard number is 1")
Copy file name to clipboardExpand all lines: cmd/run.go
+38-5Lines changed: 38 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -71,11 +71,12 @@ var (
71
71
)
72
72
73
73
var (
74
-
resultDirstring
75
-
idstring
76
-
symlinkbool
77
-
extrabool
78
-
parallelbool
74
+
resultDirstring
75
+
idstring
76
+
symlinkbool
77
+
extrabool
78
+
parallelbool
79
+
shardPatternstring
79
80
)
80
81
81
82
varrunCmd=&cobra.Command{
@@ -90,10 +91,17 @@ func init() {
90
91
flags.StringVarP(&id, "id", "", "", "ID for this test run")
91
92
flags.BoolVarP(&extra, "extra", "x", false, "Add extra debug info to log files")
92
93
flags.BoolVarP(¶llel, "parallel", "p", false, "Run multiple tests in parallel")
94
+
// shardPattern is 1-based (1/10, 3/10, 10/10) rather than normal computer 0-based (0/9, 2/9, 9/9), because it is easier for
95
+
// humans to understand when calling the CLI.
96
+
flags.StringVarP(&shardPattern, "shard", "s", "", "which shard to run, in form of 'N/M' where N is the shard number and M is the total number of shards, smallest shard number is 1")
0 commit comments