jyma...@adullact.net
unread,Feb 21, 2017, 1:09:41 PM2/21/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openmairie-...@googlegroups.com
Author: jymadier
Date: 2017-02-21 19:09:39 +0100 (Tue, 21 Feb 2017)
New Revision: 256
Modified:
branches/bug_add_election/tests/init_testenv
Log:
* Correction de la cr?\195?\169ation du lien symbolique pour les tests
Modified: branches/bug_add_election/tests/init_testenv
===================================================================
--- branches/bug_add_election/tests/init_testenv 2017-02-21 17:57:08 UTC (rev 255)
+++ branches/bug_add_election/tests/init_testenv 2017-02-21 18:09:39 UTC (rev 256)
@@ -19,7 +19,7 @@
# ou n'existe pas
if ([ -e $path_tests ] && [ -L $path_tests ]) || ([ ! -e $path_tests ])
then
- if [ -e $path_tests ]
+ if [ -L $path_tests ]
then
sudo rm -f $path_tests
fi
@@ -57,10 +57,10 @@
# tests
cd data/mysql/
echo " Suppression de la base $database ..."
-sudo mysql -u root -proot -e "DROP DATABASE $database;"
+sudo mysql -u root -e "DROP DATABASE $database;"
echo " Création et initialisation de la base $database ..."
-sudo mysql -u root -proot -e "CREATE DATABASE $database;"
-sudo mysql -u root -proot $database < init.sql
+sudo mysql -u root -e "CREATE DATABASE $database;"
+sudo mysql -u root $database < init.sql
cd ../..