150
150
self.server1.exec_query("SET GLOBAL server_id = %s" % slave_serverid)
152
comment = "Test case 10 - --master-log-pos but no log file"
153
cmd_opts = "--master-log-pos=96 "
154
res = mutlib.System_test.run_test_case(self, 2, cmd+cmd_opts, comment)
156
raise MUTLibError("%s: failed" % comment)
158
comment = "Test case 11 - --master-log-file and --start-from-beginning"
159
cmd_opts = "--master-log-file='mysql_bin.00005' --start-from-beginning"
160
res = mutlib.System_test.run_test_case(self, 2, cmd+cmd_opts, comment)
162
raise MUTLibError("%s: failed" % comment)
164
comment = "Test case 12 - --master-log-pos and --start-from-beginning"
165
cmd_opts = "--master-log-pos=96 --start-from-beginning"
166
res = mutlib.System_test.run_test_case(self, 2, cmd+cmd_opts, comment)
168
raise MUTLibError("%s: failed" % comment)
170
comment = "Test case 13 - --master-log-file+pos and --start-from-beginning"
171
cmd_opts = "--master-log-pos=96 --start-from-beginning "
172
cmd_opts += "--master-log-file='mysql_bin.00005'"
173
res = mutlib.System_test.run_test_case(self, 2, cmd+cmd_opts, comment)
175
raise MUTLibError("%s: failed" % comment)
152
177
# Mask known platform-dependent lines
153
178
self.mask_result("Error 2005:", "(1", '#######')
154
179
self.replace_result("ERROR: Query failed. 1227: Access denied;",