Skip to content

Commit

Permalink
mroonga after-merge test fixes
Browse files Browse the repository at this point in the history
"sed -r" fails on labrador. Don't use sed, use perl.
  • Loading branch information
vuvova committed Nov 17, 2017
1 parent d7349e2 commit 4666f01
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

let $MYSQLD_DATADIR= `select @@datadir`;
let MYSQLD_DATADIR= `select @@datadir`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
SHOW GLOBAL VARIABLES LIKE "mroonga_query_log_file";
perl;
open(F, '<', $_="$ENV{MYSQLD_DATADIR}/groonga-query-log.log") or die "open(<$_): $!";
while (<F>) {
s/^[^|]+\|[^|]+\|[^|]+\| *//;
print;
}
EOF
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
SET GLOBAL mroonga_log_file = "groonga-query-log.log";

SET GLOBAL mroonga_query_log_file = "";
SHOW GLOBAL VARIABLES LIKE "mroonga_query_log_file";
--exec sed -r -e 's/^[^|]+\|[^|]+\|[^|]+\| *//' $MYSQLD_DATADIR/groonga-query-log.log
--source ../../include/mroonga/print_groonga_query_log.inc

SET GLOBAL mroonga_query_log_file = DEFAULT;
SET GLOBAL mroonga_log_file = DEFAULT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
SET GLOBAL mroonga_log_file = "groonga-query-log.log";

SET GLOBAL mroonga_query_log_file = NULL;
SHOW GLOBAL VARIABLES LIKE "mroonga_query_log_file";
--exec sed -r -e 's/^[^|]+\|[^|]+\|[^|]+\| *//' $MYSQLD_DATADIR/groonga-query-log.log
--source ../../include/mroonga/print_groonga_query_log.inc

SET GLOBAL mroonga_query_log_file = DEFAULT;
SET GLOBAL mroonga_log_file = DEFAULT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ SET GLOBAL mroonga_query_log_file = "groonga-query.log";
SET GLOBAL mroonga_log_file = "groonga-query-log.log";

SET GLOBAL mroonga_query_log_file = "";
SHOW GLOBAL VARIABLES LIKE "mroonga_query_log_file";
--exec sed -r -e 's/^[^|]+\|[^|]+\|[^|]+\| *//' $MYSQLD_DATADIR/groonga-query-log.log
--source ../../include/mroonga/print_groonga_query_log.inc

SET GLOBAL mroonga_query_log_file = DEFAULT;
SET GLOBAL mroonga_log_file = DEFAULT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ SET GLOBAL mroonga_query_log_file = "groonga-query.log";
SET GLOBAL mroonga_log_file = "groonga-query-log.log";

SET GLOBAL mroonga_query_log_file = NULL;
SHOW GLOBAL VARIABLES LIKE "mroonga_query_log_file";
--exec sed -r -e 's/^[^|]+\|[^|]+\|[^|]+\| *//' $MYSQLD_DATADIR/groonga-query-log.log
--source ../../include/mroonga/print_groonga_query_log.inc

SET GLOBAL mroonga_query_log_file = DEFAULT;
SET GLOBAL mroonga_log_file = DEFAULT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
SET GLOBAL mroonga_log_file = "groonga-query-log.log";

SET GLOBAL mroonga_query_log_file = "groonga-query.log";
SHOW GLOBAL VARIABLES LIKE "mroonga_query_log_file";
--exec sed -r -e 's/^[^|]+\|[^|]+\|[^|]+\| *//' $MYSQLD_DATADIR/groonga-query-log.log
--source ../../include/mroonga/print_groonga_query_log.inc

SET GLOBAL mroonga_query_log_file = DEFAULT;
SET GLOBAL mroonga_log_file = DEFAULT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ SET GLOBAL mroonga_query_log_file = "groonga-query.log";
SET GLOBAL mroonga_log_file = "groonga-query-log.log";

SET GLOBAL mroonga_query_log_file = "groonga-query.log";
SHOW GLOBAL VARIABLES LIKE "mroonga_query_log_file";
--exec sed -r -e 's/^[^|]+\|[^|]+\|[^|]+\| *//' $MYSQLD_DATADIR/groonga-query-log.log
--source ../../include/mroonga/print_groonga_query_log.inc

SET GLOBAL mroonga_query_log_file = DEFAULT;
SET GLOBAL mroonga_log_file = DEFAULT;
Expand Down

0 comments on commit 4666f01

Please sign in to comment.