From 2e2880ee6e98289ca1f3c0303df77394936c584d Mon Sep 17 00:00:00 2001 From: Sergio Mena Date: Tue, 31 May 2022 17:34:13 +0200 Subject: [PATCH] Added optional seed-delta parameter --- test/e2e/runner/main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/e2e/runner/main.go b/test/e2e/runner/main.go index fb6ce4a8c..692a51bed 100644 --- a/test/e2e/runner/main.go +++ b/test/e2e/runner/main.go @@ -24,9 +24,10 @@ func main() { // CLI is the Cobra-based command-line interface. type CLI struct { - root *cobra.Command - testnet *e2e.Testnet - preserve bool + root *cobra.Command + testnet *e2e.Testnet + preserve bool + seedDelta int } // NewCLI sets up the CLI. @@ -136,6 +137,8 @@ func NewCLI() *CLI { cli.root.PersistentFlags().StringP("file", "f", "", "Testnet TOML manifest") _ = cli.root.MarkPersistentFlagRequired("file") + cli.root.PersistentFlags().IntP("seed-delta", "s", 0, "Interger to be added to the initial hard-coded seed") + cli.root.PersistentFlags().IntP("seed-delta", "s", 0, "Interger to be added to the initial hard-coded seed") cli.root.Flags().BoolVarP(&cli.preserve, "preserve", "p", false, "Preserves the running of the test net after tests are completed")