Ooops, sorry, I missed files in "/src" (I only checked out picshell libraries...)
Seb 2009/10/1 Sebastien Lelong <[email protected]> > Hi Albert, > > Unitests won't work with latest PICShell SVN, due to JALsPy_globals missing > module, imported from picshell/monitors/DeviceStateMonitors.py and > picshell/ui/UIManager.py > > > Ex: > > ipython> from picshell.console.picshell_unittest import picshell_unittest > --------------------------------------------------------------------------- > <type 'exceptions.ImportError'> Traceback (most recent call last) > > /home/sirloon/Documents/Projects/jallib/tools/<ipython console> in > <module>() > > /home/sirloon/Documents/Projects/jallib/tools/picshell/console/picshell_unittest.py > in <module>() > 5 from picshell.util.AssertUtil import AssertUtil > 6 > ----> 7 from picshell.ui.UIManager import UIManager > 8 > 9 def get_pictype( asmFileName ): > > /home/sirloon/Documents/Projects/jallib/tools/picshell/ui/UIManager.py in > <module>() > 3 from picshell.engine.core.PicThreadEngine import PicThreadEngine > 4 from picshell.engine.util.Format import Format > ----> 5 from picshell.monitors.DeviceStateMonitors import > DeviceSourceStateMonitor > 6 from picshell.monitors.DeviceStateMonitors import > DeviceTargetStateMonitor > 7 from picshell.monitors.RegisterUpdater import RegisterUpdater > > /home/sirloon/Documents/Projects/jallib/tools/picshell/monitors/DeviceStateMonitors.py > in <module>() > 2 # Global monitor > 3 # > ----> 4 from JALsPy_globals import V_Node > 5 > 6 import JALsPy_globals > > <type 'exceptions.ImportError'>: No module named JALsPy_globals > > > > > Cheers, > Seb > -- > Sébastien Lelong > http://www.sirloon.net > http://sirbot.org > > > 2009/10/1 a.faber <[email protected]> > > >> Hi Seb, >> Good news, I haven't changed anything regarding JalSpy, the file JalSpy.py >> is in te archive, though there was an init file missing in unittest >> directory (fixed 2 days ago), so you might give it a try with an clean >> copy >> of the latest SVN, if it does not work, please let me know and I will try >> to >> fix the issue. >> Albert >> >> >> ----- Original Message ----- >> From: "Sebastien Lelong" <[email protected]> >> To: <[email protected]> >> Sent: Thursday, October 01, 2009 7:52 AM >> Subject: [jallib] Re: r1361 committed - undo unittest changeset >> >> >> > Hi Albert, >> > >> > I'm ready to migrate to last picshell version, except for JALsPy >> > dependency. >> > Where can I get it ? Is this a temporary dependency, or will it remain ? >> > >> > Cheers, >> > Seb >> > >> > >> > >> > Hi Albert, >> >> >> >> Great it fails as expected, no more traceback as before. I'd say it >> fails >> >> with success... >> >> >> >> Cheers >> >> Seb >> >> >> >> >> >> >> >> >> >>> Hi Seb, >> >>> Fixed the issue for the pic16f683, changes are committed to SVN, so >> >>> please >> >>> give it a try >> >>> Albert >> >>> >> >>> ----- Original Message ----- >> >>> From: "Sebastien Lelong" <[email protected]> >> >>> To: <[email protected]> >> >>> Sent: Tuesday, September 29, 2009 9:44 PM >> >>> Subject: [jallib] Re: r1361 committed - undo unittest changeset >> >>> >> >>> >> >>> > OK this test not under SVN, sorry :) >> >>> > >> >>> > >> >>> > Cheers, >> >>> > Seb >> >>> > >> >>> > >> >>> > 2009/9/29 Sebastien Lelong <[email protected]> >> >>> > >> >>> >> >> >>> >> >> >>> >>> Hi Seb, >> >>> >>> Which unittest are failing? >> >>> >>> >> >>> >> >> >>> >> This is 12f683_adc.jalt but I'm quite sure it was failing before, >> >>> >> suspecting a bug in my automation... It complains about ADCON1 not >> >>> >> existing. >> >>> >> Fast-replacing ADCON1 => ADCON0, it gives the following error: >> >>> >> >> >>> >> Traceback (most recent call last): >> >>> >> File "/home/sirloon/Documents/Projects/jallib/tools/jallib.py", >> >>> >> line >> >>> >> 1315, in <module> >> >>> >> callme(action_args) >> >>> >> File "/home/sirloon/Documents/Projects/jallib/tools/jallib.py", >> >>> >> line >> >>> >> 885, >> >>> >> in do_unittest >> >>> >> oracle = unittest(filename) >> >>> >> File "/home/sirloon/Documents/Projects/jallib/tools/jallib.py", >> >>> >> line >> >>> >> 784, >> >>> >> in unittest >> >>> >> oracle = picshell_unittest(jal,asm,hex) >> >>> >> File >> >>> >> >> >>> >> "/home/sirloon/Documents/Projects/jallib/tools/picshell/console/picshell_unittest.py", >> >>> >> line 63, in picshell_unittest >> >>> >> emu = PicEngine.newInstance(picTypeName,hexFileName) >> >>> >> File >> >>> >> >> >>> >> "/home/sirloon/Documents/Projects/jallib/tools/picshell/engine/core/PicEngine.py", >> >>> >> line 160, in newInstance >> >>> >> emu = PicEngine(pic,code, adrDelay,lastAddress) >> >>> >> File >> >>> >> >> >>> >> "/home/sirloon/Documents/Projects/jallib/tools/picshell/engine/core/PicEngine.py", >> >>> >> line 20, in __init__ >> >>> >> self.state = State( self.pic ) >> >>> >> File >> >>> >> >> >>> >> "/home/sirloon/Documents/Projects/jallib/tools/picshell/engine/core/State.py", >> >>> >> line 53, in __init__ >> >>> >> self.EEDATA = pic.fsr_regs["EEDATA"] >> >>> >> KeyError: 'EEDATA' >> >>> >> >> >>> >> >> >>> >> Not sure it's related. Still I have work to do to make sure >> >>> >> automation >> >>> >> results are correct... >> >>> >> >> >>> >> >> >>> >> Cheers, >> >>> >> Seb >> >>> >> >> >>> >> >> >>> > >> >>> > > >> >>> > >> >>> >> >>> >> >>> >> >> >>> >> >> >> > >> > > >> > >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
