fix condition for named test (#146)

This commit is contained in:
Timofey Turenko
2017-12-07 11:57:11 +02:00
committed by GitHub
parent 8ddd16186e
commit a6a37969e9
4 changed files with 3 additions and 13 deletions

View File

@ -1,5 +0,0 @@
export curr_dir=`pwd`
cd $HOME/mdbci
$HOME/mdbci/mdbci snapshot revert --path-to-nodes $1 --snapshot-name $2
cd $curr_dir

View File

@ -70,7 +70,7 @@ if [ $res == 0 ] ; then
. ${script_dir}/configure_backend.sh . ${script_dir}/configure_backend.sh
${mdbci_dir}/mdbci snapshot take --path-to-nodes $name --snapshot-name clean ${mdbci_dir}/mdbci snapshot take --path-to-nodes $name --snapshot-name clean
if [ -z "${named_test}" ] ; then if [ ! -z "${named_test}" ] ; then
./${named_test} ./${named_test}
else else
./check_backend ./check_backend

View File

@ -90,8 +90,8 @@ export sysbench_dir=${sysbench_dir:-"$HOME/sysbench_deb7/sysbench/"}
export ssl=true export ssl=true
export take_snapshot_command="${script_dir}/take_snapshot.sh $config_name" export take_snapshot_command="${mdbci_dir}/mdbci snapshot take --path-to-nodes $name --snapshot-name "
export revert_snapshot_command="${script_dir}/revert_snapshot.sh $config_name" export revert_snapshot_command="${mdbci_dir}/mdbci snapshot revert --path-to-nodes $name --snapshot-name "
#export use_snapshots=yes #export use_snapshots=yes
set +x set +x

View File

@ -1,5 +0,0 @@
export curr_dir=`pwd`
cd $HOME/mdbci
$HOME/mdbci/mdbci snapshot take --path-to-nodes $1 --snapshot-name $2
cd $curr_dir