~mysql/mysql-utilities/1.3.2

« back to all changes in this revision

Viewing changes to mysql-test/t/compare_db_parameters.py

  • Committer: Paulo Jesus
  • Date: 2013-04-19 18:31:54 UTC
  • mfrom: (289.1.47 mysql-utilities-1.2.2)
  • Revision ID: paulo.jesus@oracle.com-20130419183154-g8rkvs2oezbdvrud
Release-1.3.1 Merge

This patch merges version 1.2.2 to 1.3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
        s1_conn = "--server1=" + self.build_connection_string(self.server1)
42
42
        s2_conn = "--server2=" + self.build_connection_string(self.server2)
43
 
       
 
43
 
44
44
        cmd_str = "mysqldbcompare.py %s %s inventory:inventory " % \
45
45
                  (s1_conn, s2_conn)
46
46
 
51
51
        if not res:
52
52
            raise MUTLibError("%s: failed" % comment)
53
53
 
 
54
        # Remove version information
 
55
        self.remove_result_and_lines_after("MySQL Utilities mysqldbcompare.py "
 
56
                                           "version", 6)
 
57
 
54
58
        compare_db.test.alter_data(self)
55
59
        self.server1.exec_query("DROP VIEW inventory.tools")
56
60
 
78
82
            raise MUTLibError("%s: failed" % comment)
79
83
 
80
84
        test_num += 1
81
 
        cmd_opts = " --format=csv -a" 
82
 
        cmd_opts += " --width=65" 
83
 
        comment = "Test case %d - %s" % (test_num, cmd_opts)
84
 
        res = self.run_test_case(1, cmd_str + cmd_opts, comment)
85
 
        if not res:
86
 
            raise MUTLibError("%s: failed" % comment)
87
 
 
88
 
        test_num += 1
89
 
        cmd_opts = " --format=csv -a" 
90
 
        cmd_opts += " --width=55" 
91
 
        comment = "Test case %d - %s" % (test_num, cmd_opts)
92
 
        res = self.run_test_case(1, cmd_str + cmd_opts, comment)
93
 
        if not res:
94
 
            raise MUTLibError("%s: failed" % comment)
95
 
 
96
 
        test_num += 1
97
 
        cmd_opts = " --format=csv -vvv -a" 
98
 
        comment = "Test case %d - %s" % (test_num, cmd_opts)
99
 
        res = self.run_test_case(1, cmd_str + cmd_opts, comment)
100
 
        if not res:
101
 
            raise MUTLibError("%s: failed" % comment)
102
 
 
103
 
        test_num += 1
104
 
        cmd_opts = " --format=csv -vvv -a --disable-binary-logging" 
 
85
        cmd_opts = " --format=csv -a"
 
86
        cmd_opts += " --width=65"
 
87
        comment = "Test case %d - %s" % (test_num, cmd_opts)
 
88
        res = self.run_test_case(1, cmd_str + cmd_opts, comment)
 
89
        if not res:
 
90
            raise MUTLibError("%s: failed" % comment)
 
91
 
 
92
        test_num += 1
 
93
        cmd_opts = " --format=csv -a"
 
94
        cmd_opts += " --width=55"
 
95
        comment = "Test case %d - %s" % (test_num, cmd_opts)
 
96
        res = self.run_test_case(1, cmd_str + cmd_opts, comment)
 
97
        if not res:
 
98
            raise MUTLibError("%s: failed" % comment)
 
99
 
 
100
        test_num += 1
 
101
        cmd_opts = " --format=csv -vvv -a"
 
102
        comment = "Test case %d - %s" % (test_num, cmd_opts)
 
103
        res = self.run_test_case(1, cmd_str + cmd_opts, comment)
 
104
        if not res:
 
105
            raise MUTLibError("%s: failed" % comment)
 
106
 
 
107
        test_num += 1
 
108
        cmd_opts = " --format=csv -vvv -a --disable-binary-logging"
105
109
        comment = "Test case %d - %s" % (test_num, cmd_opts)
106
110
        res = self.run_test_case(1, cmd_str + cmd_opts, comment)
107
111
        if not res:
108
112
            raise MUTLibError("%s: failed" % comment)
109
113
 
110
114
        compare_db.test.do_replacements(self)
111
 
        
 
115
 
112
116
        return True
113
117
 
114
118
    def get_result(self):