From d9b7bfff2c254ebac7ab65178bf122f08e00e897 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 10 Jul 2012 19:28:16 +0200 Subject: [PATCH] Properly quote database name Seems to fix #30, but also reveals that a FLUSHALL is also needed when redis is started by ourselves... --- test/prepare_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/prepare_db.sh b/test/prepare_db.sh index 56e38fdf..5c62235c 100755 --- a/test/prepare_db.sh +++ b/test/prepare_db.sh @@ -28,6 +28,6 @@ psql "${TEST_DB}" < ./sql/gadm4.sql echo "preparing redis..." echo "HSET rails:users:vizzuality id 1" | redis-cli -p ${REDIS_PORT} -n 5 echo "HSET rails:users:vizzuality database_name '${TEST_DB}'" | redis-cli -p ${REDIS_PORT} -n 5 -echo 'HSET rails:${TEST_DB}:my_table infowindow "this, that, the other"' | redis-cli -p ${REDIS_PORT} -n 0 +echo 'HSET rails:'${TEST_DB}':my_table infowindow "this, that, the other"' | redis-cli -p ${REDIS_PORT} -n 0 echo "Finished preparing data. Run tests with expresso."