From 36159a76978e8f1420129b97198dac077f451cd6 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 20 Dec 2013 13:47:28 +0100 Subject: [PATCH] Change stresstester to always create a different template --- tools/performance/stresstest_templates.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/performance/stresstest_templates.sh b/tools/performance/stresstest_templates.sh index d6888cf0..56ac4ef9 100755 --- a/tools/performance/stresstest_templates.sh +++ b/tools/performance/stresstest_templates.sh @@ -31,12 +31,13 @@ export CDB_APIKEY=${apikey} max=3000000 i=0 while test "$i" -le "$max"; do - tpl_id=`${basedir}/create_template -u ${tiler_url} ${tpl}` + tpln=`cat ${tpl} | sed "s/\"name\":\"\(.*\)\"/\"name\":\"\1${i}\"/"` + tpl_id=`echo ${tpln} | ${basedir}/create_template -u ${tiler_url} /dev/stdin` if test $? -ne 0; then echo $tpl_id >&2 break fi - tpl_id=`${basedir}/update_template -u ${tiler_url} ${tpl_id} ${tpl}` + tpl_id=`echo ${tpln} | ${basedir}/update_template -u ${tiler_url} ${tpl_id} /dev/stdin` if test $? -ne 0; then echo $tpl_id >&2 break