Code review comment for lp:~sharan-monikantan/drizzle/trunk-bug-723915-complete

Revision history for this message
Patrick Crews (patrick-crews) wrote :

Needs one bit of work in file.test:
The only issue is that the .result file contains the actual DRIZZLETEST_VARDIR value
This needs to be fixed either with disable_query_log to keep the output of the .result file (though echo output should indicate the action is being performed) or via the replace_result function to mask the actual DRIZZLETEST_VARDIR value (you'll need to capture it early in the test like:
actual_vardir_value = $DRIZZLETEST_VARDIR
...
--replace_result $actual_vardir_value DRIZZLETEST_VARDIR

replace_result would be preferable, but anything to eliminate the capture of a hard variable value in the .result file is good (so the test can run on anyone's machine regardless of where DRIZZLETEST_VARDIR may be)

=== modified file 'plugin/logging_query/tests/t/file.test'
--- plugin/logging_query/tests/t/file.test 2012-09-21 22:52:11 +0000
+++ plugin/logging_query/tests/t/file.test 2012-10-08 16:52:26 +0000
@@ -80,6 +80,11 @@
 --echo cleaning up...
 SET GLOBAL logging_query_enable=false;
 SET GLOBAL logging_query_pcre="*";
+# Here is where you either need to use:
+# disable_query_log, enable_query_log OR
+# replace_result from_val to_val [from_val to_val] ...
+# to capture what DRIZZLETEST_VARDIR really is and to mask it
+
 eval SET GLOBAL logging_query_filename="$DRIZZLETEST_VARDIR/logging_query.log";
 --exec rm $DRIZZLETEST_VARDIR/logging_query.log
 --echo ***done***

review: Needs Fixing

« Back to merge proposal