diff --git a/autotest.sh b/autotest.sh
index eb6b48881887555acf5af57c845135da9e00c522..d6b975c62d23de067eb578ac6758cce6f863700a 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -166,7 +166,7 @@ function execute_tests {
 		mysql -u $DATABASEUSER -powncloud -e "DROP DATABASE $DATABASENAME"
 	fi
 	if [ "$1" == "pgsql" ] ; then
-		dropdb -U $DATABASEUSER $DATABASENAME
+		dropdb -U $DATABASEUSER $DATABASENAME || true
 	fi
 	if [ "$1" == "oci" ] ; then
 		echo "drop the database"