def tearDown(self):
     pykd.killProcess(self.processId)
Пример #2
0
 def testKill(self):
     pykd.killProcess( target.processId )
Пример #3
0
 def __call__(self):
     pykd.killProcess(self.processId)
     pykd.detachProcess(self.processId)
Пример #4
0
    target.appPath = sys.argv[1]

    target.moduleName = os.path.splitext(os.path.basename(target.appPath))[0]
    print "Test module: %s" % target.appPath

    pykd.startProcess(target.appPath)

    target.module = pykd.loadModule(target.moduleName)
    target.module.reload()

    pykd.go()

    print ""

    oneProcessTests = getTestSuite()
    #oneProcessTests = getTestSuite( "diatest.DiaTest.testFind" )
    #oneProcessTests = getTestSuite( "typedvar.TypedVarTest.testTypeVarArg" )
    #oneProcessTests = getTestSuite( "typeinfo.TypeInfoTest.testCreateByName" )
    #oneProcessTests = getTestSuite( "typedvar.TypedVarTest.testBitField" )

    unittest.TextTestRunner(stream=sys.stdout,
                            verbosity=2).run(oneProcessTests)

    pykd.killProcess()

    unittest.TextTestRunner(stream=sys.stdout,
                            verbosity=2).run(getNewProcessTestSuite())

    raw_input("\npress return\n")
 def killProcess(self):
     pykd.killProcess()
     self.processOpened = False
     self.targetDetached.emit()