[LNT] r343509 - tests/SharedInputs/mysql_wrapper.sh: Hide output from dropdb

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 1 11:00:25 PDT 2018


Author: matze
Date: Mon Oct  1 11:00:25 2018
New Revision: 343509

URL: http://llvm.org/viewvc/llvm-project?rev=343509&view=rev
Log:
tests/SharedInputs/mysql_wrapper.sh: Hide output from dropdb

It is expected/common that the database doesn't exist (yet), hide the
messages to avoid confusion when reading test logs.

Modified:
    lnt/trunk/tests/SharedInputs/mysql_wrapper.sh

Modified: lnt/trunk/tests/SharedInputs/mysql_wrapper.sh
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/SharedInputs/mysql_wrapper.sh?rev=343509&r1=343508&r2=343509&view=diff
==============================================================================
--- lnt/trunk/tests/SharedInputs/mysql_wrapper.sh (original)
+++ lnt/trunk/tests/SharedInputs/mysql_wrapper.sh Mon Oct  1 11:00:25 2018
@@ -64,10 +64,11 @@ do
 done
 set -e
 
+# Drop database to be sure. The DB may not exist if the test has not been run
+# before: hide output to avoid confusion.
 set +e
-# This may not be there if the test has not been run before.
 echo "$ mysqladmin ${MYSQLADMIN_FLAGS} drop --force testdb"
-eval mysqladmin ${MYSQLADMIN_FLAGS} drop --force testdb
+eval mysqladmin ${MYSQLADMIN_FLAGS} drop --force testdb >& /dev/null
 set -e
 
 echo "$ mysqladmin ${MYSQLADMIN_FLAGS} create testdb"




More information about the llvm-commits mailing list