File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ tests_path=$(dirname $0)
11
11
test_logfile=/tmp/gh-ost-test.log
12
12
ghost_binary=/tmp/gh-ost-test
13
13
exec_command_file=/tmp/gh-ost-test.bash
14
-
14
+ orig_content_output_file=/gh-ost-test.orig.content.csv
15
+ ghost_content_output_file=/gh-ost-test.ghost.content.csv
15
16
test_pattern=" ${1:- .} "
16
17
17
18
master_host=
@@ -152,15 +153,17 @@ test_single() {
152
153
fi
153
154
154
155
echo_dot
155
- orig_checksum=$( gh-ost-test-mysql-replica --default-character-set=utf8mb4 test -e " select ${orig_columns} from gh_ost_test ${order_by} " -ss | md5sum)
156
- ghost_checksum=$( gh-ost-test-mysql-replica --default-character-set=utf8mb4 test -e " select ${ghost_columns} from _gh_ost_test_gho ${order_by} " -ss | md5sum)
156
+ gh-ost-test-mysql-replica --default-character-set=utf8mb4 test -e " select ${orig_columns} from gh_ost_test ${order_by} " -ss > $orig_content_output_file
157
+ gh-ost-test-mysql-replica --default-character-set=utf8mb4 test -e " select ${ghost_columns} from _gh_ost_test_gho ${order_by} " -ss > $ghost_content_output_file
158
+ orig_checksum=$( cat $orig_content_output_file | md5sum)
159
+ ghost_checksum=$( cat $ghost_content_output_file | md5sum)
157
160
158
161
if [ " $orig_checksum " != " $ghost_checksum " ] ; then
159
162
echo " ERROR $test_name : checksum mismatch"
160
163
echo " ---"
161
- gh-ost-test-mysql-replica --default-character-set=utf8mb4 test -e " select ${orig_columns} from gh_ost_test " -ss
162
- echo " --- "
163
- gh-ost-test-mysql-replica --default-character-set=utf8mb4 test -e " select ${ghost_columns} from _gh_ost_test_gho " -ss
164
+ diff $orig_content_output_file $ghost_content_output_file
165
+
166
+ echo " diff $orig_content_output_file $ghost_content_output_file "
164
167
return 1
165
168
fi
166
169
}
You can’t perform that action at this time.
0 commit comments