Improve import of general tests/cli stuff as per rigel
This commit is contained in:
parent
96f96ffc3d
commit
23a539ae6f
|
@ -116,9 +116,7 @@ test03CreditTx() {
|
|||
|
||||
# Load common then run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/common.sh
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -353,9 +353,7 @@ assertNewHeight() {
|
|||
|
||||
# Load common then run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/common.sh
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -105,8 +105,6 @@ checkDir() {
|
|||
|
||||
# load and run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -26,8 +26,6 @@ testMakeKeys() {
|
|||
|
||||
# load and run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -151,9 +151,7 @@ test04CreateRoleInvalid() {
|
|||
|
||||
# Load common then run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/common.sh
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -78,9 +78,7 @@ test01OnRestart() {
|
|||
|
||||
# Load common then run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/common.sh
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -90,9 +90,7 @@ test03SendMultiFromRole() {
|
|||
|
||||
# Load common then run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/common.sh
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -127,7 +127,6 @@ test03Waiting() {
|
|||
|
||||
# load and run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -112,9 +112,7 @@ test03AddCount() {
|
|||
|
||||
# Load common then run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
|
||||
# TODO: how to handle this if we are not in the same directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/common.sh
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
|
@ -66,7 +66,7 @@ test00SetGetRemove() {
|
|||
|
||||
# Load common then run these tests with shunit2!
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
|
||||
CLI_DIR=${DIR}/../../../../tests/cli
|
||||
CLI_DIR=$GOPATH/src/github.com/cosmos/cosmos-sdk/tests/cli
|
||||
|
||||
. $CLI_DIR/common.sh
|
||||
. $CLI_DIR/shunit2
|
||||
|
|
Loading…
Reference in New Issue