From bf05c0332848fa0598be132a5151cfb151288958 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Thu, 9 Feb 2012 23:18:15 -0500 Subject: Return ok from db/table creation routines, even though it's bogus, just so we can compare it. --- test/mysqlerl_test_lib.erl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/mysqlerl_test_lib.erl') diff --git a/test/mysqlerl_test_lib.erl b/test/mysqlerl_test_lib.erl index 7a98c09..79a4ee5 100644 --- a/test/mysqlerl_test_lib.erl +++ b/test/mysqlerl_test_lib.erl @@ -32,7 +32,8 @@ create_db(User, Pass, Name) -> drop_db(User, Pass, Name), SQL = io_lib:format("CREATE DATABASE ~s", [Name]), CMD = mysql_cmd(User, Pass), - os:cmd(io_lib:format("echo '~s' | ~s", [SQL, CMD])). + os:cmd(io_lib:format("echo '~s' | ~s", [SQL, CMD])), + ok. drop_db(_Config) -> DBInfo = ct:get_config(db_info), @@ -44,7 +45,8 @@ drop_db(_Config) -> drop_db(User, Pass, Name) -> SQL = io_lib:format("DROP DATABASE IF EXISTS ~s", [Name]), CMD = mysql_cmd(User, Pass), - os:cmd(io_lib:format("echo '~s' | ~s", [SQL, CMD])). + os:cmd(io_lib:format("echo '~s' | ~s", [SQL, CMD])), + ok. create_table(Config) -> DBInfo = ct:get_config(db_info), @@ -56,4 +58,5 @@ create_table(Config) -> create_table(User, Pass, Name, DataDir) -> CMD = mysql_cmd(User, Pass), - os:cmd(io_lib:format("~s ~s < ~s/table-data.sql", [CMD, Name, DataDir])). + os:cmd(io_lib:format("~s ~s < ~s/table-data.sql", [CMD, Name, DataDir])), + ok. -- cgit v1.2.3