コード例 #1
0
ファイル: simple_ci_tests.py プロジェクト: KDAB/Make-O-Matic
	def tearDown( self ):
		MomTestCase.tearDown( self )

		# make sure config content stayed the same
		if self.DatabaseChecksum:
			self.assertEqual( self.DatabaseChecksum, md5sum( self._getSimpleCiDatabaseFilename() ),
					"Database changed during tests run." )

		os.chdir( self.CurrentDirectory )
		removeDirectories = glob.glob( "make-o-matic*" )
		removeDirectories.extend( glob.glob( "builds" ) )
		removeDirectories.append( self._getSimpleCiDataDir( SimpleCITests.TestInstanceName ) )
		for directory in removeDirectories:
			rmtree( directory )
コード例 #2
0
ファイル: simple_ci_tests.py プロジェクト: KDAB/Make-O-Matic
	def setUp( self ):
		MomTestCase.setUp( self )

		# save current database checksum for later comparison, check if database file exists (e.g. at first run)
		if os.path.exists( self._getSimpleCiDatabaseFilename() ):
			self.DatabaseChecksum = md5sum( self._getSimpleCiDatabaseFilename() )