def run(self): if (len(self.args)): suiteName = self.args[0] harnessDB = db.HarnessDBConnection() harnessDB.execute( "DELETE FROM `status_cache` " "WHERE `test_suite` = %s ", (suiteName, )).close() harnessDB.execute( "DELETE FROM `suite_tests` " "WHERE `test_suite` = %s ", (suiteName, )).close() harnessDB.execute( "DELETE FROM `test_pages` " "WHERE `test_suite` = %s ", (suiteName, )).close() harnessDB.execute( "DELETE FROM `reference_pages` " "WHERE `test_suite` = %s ", (suiteName, )).close() harnessDB.execute( "DELETE FROM `test_sequence` " "WHERE `test_suite` = %s ", (suiteName, )).close() harnessDB.execute( "DELETE FROM `test_spec_links` " "WHERE `test_suite` = %s ", (suiteName, )).close()
def run(self): if (len(self.args)): formatName = self.args[0] harnessDB = db.HarnessDBConnection() harnessDB.execute("DELETE FROM `reference_pages` " "WHERE `format` = %s ", (formatName, )).close() harnessDB.execute("DELETE FROM `test_pages` " "WHERE `format` = %s ", (formatName, )).close()
def run(self): if (len(self.args)): oldFormatName, newFormatName = self.args[0:2] harnessDB = db.HarnessDBConnection() harnessDB.execute( "UPDATE `reference_pages` " "SET `format` = %s " "WHERE `format` = %s ", (newFormatName, oldFormatName)).close() harnessDB.execute( "UPDATE `test_pages` " "SET `format` = %s " "WHERE `format` = %s ", (newFormatName, oldFormatName)).close()
def run(self): if (len(self.args)): specName = self.args[0] harnessDB = db.HarnessDBConnection() harnessDB.execute( "DELETE FROM `test_spec_links` " "WHERE `spec` = %s ", (specName, )).close() harnessDB.execute( "DELETE FROM `status_cache` " "WHERE `spec` = %s ", (specName, )).close() harnessDB.execute( "DELETE FROM `spec_sync_data` " "WHERE `spec` = %s ", (specName, )).close()
def run(self): if (1 < len(self.args)): oldSpecName, newSpecName = self.args[0:2] harnessDB = db.HarnessDBConnection() harnessDB.execute( "UPDATE `test_spec_links` " "SET `spec` = %s " "WHERE `spec` = %s ", (newSpecName, oldSpecName)).close() harnessDB.execute( "UPDATE `status_cache` " "SET `spec` = %s " "WHERE `spec` = %s ", (newSpecName, oldSpecName)).close() harnessDB.execute( "UPDATE `spec_sync_data` " "SET `spec` = %s " "WHERE `spec` = %s ", (newSpecName, oldSpecName)).close()
def run(self): if (1 < len(self.args)): oldSuiteName, newSuiteName = self.args[0:2] harnessDB = db.HarnessDBConnection() harnessDB.execute( "UPDATE `status_cache` " "SET `test_suite` = %s " "WHERE `test_suite` = %s ", (newSuiteName, oldSuiteName)).close() harnessDB.execute( "UPDATE `suite_tests` " "SET `test_suite` = %s " "WHERE `test_suite` = %s ", (newSuiteName, oldSuiteName)).close() harnessDB.execute( "UPDATE `test_pages` " "SET `test_suite` = %s " "WHERE `test_suite` = %s ", (newSuiteName, oldSuiteName)).close() harnessDB.execute( "UPDATE `reference_pages` " "SET `test_suite` = %s " "WHERE `test_suite` = %s ", (newSuiteName, oldSuiteName)).close() harnessDB.execute( "UPDATE `test_sequence` " "SET `test_suite` = %s " "WHERE `test_suite` = %s ", (newSuiteName, oldSuiteName)).close() harnessDB.execute( "UPDATE `test_spec_links` " "SET `test_suite` = %s " "WHERE `test_suite` = %s ", (newSuiteName, oldSuiteName)).close()