From 4ac089f084beeffa22ac2ed99f39b69af4f495e7 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Wed, 6 Sep 2017 01:10:06 -0400 Subject: [PATCH] json testing, addressed init option PR comments --- Makefile | 3 ++- server/commands/init.go | 11 ++++++----- server/commands/root.go | 1 + tests/cli/init-server.sh | 24 ++++++++++++++++++------ 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 02cd94cc2..171180e39 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GOTOOLS = github.com/mitchellh/gox \ github.com/rigelrozanski/shelldown/cmd/shelldown TUTORIALS=$(shell find docs/guide -name "*md" -type f) -EXAMPLES := counter eyes basecoin +EXAMPLES := counter eyes basecoin INSTALL_EXAMPLES := $(addprefix install_,${EXAMPLES}) TEST_EXAMPLES := $(addprefix testex_,${EXAMPLES}) @@ -37,6 +37,7 @@ test_unit: @go test `glide novendor` test_cli: $(TEST_EXAMPLES) + ./tests/cli/init-server.sh # sudo apt-get install jq # wget "https://raw.githubusercontent.com/kward/shunit2/master/source/2.1/src/shunit2" diff --git a/server/commands/init.go b/server/commands/init.go index 4e3091eb4..96267dcc3 100644 --- a/server/commands/init.go +++ b/server/commands/init.go @@ -31,7 +31,7 @@ var ( func init() { InitCmd.Flags().String(FlagChainID, "test_chain_id", "Chain ID") - InitCmd.Flags().StringSlice(FlagOption, []string{}, "Genesis option in the format /