[LDTP-Dev] [Bug 586291] New: Subsequent tests fail when first one registers callback handlers

LDTP (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Jun 18 09:59:55 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=586291

  LDTP | ldtprunner | Ver: unspecified
           Summary: Subsequent tests fail when first one registers callback
                    handlers
           Product: LDTP
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ldtprunner
        AssignedTo: ldtp-maint at gnome.bugs
        ReportedBy: armin at arbur.net
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: Unspecified
   GNOME milestone: Unspecified


When there are two test scripts both of which register a callback on window
creation for the same window title, and both scripts are run via ldtprunner
using a corresponding XML file, then the registration of the callback in the
second script causes an error, and the test fails therefore.

Traceback (most recent call last):
  File "/usr/local/bin/ldtprunner", line 460, in executescript
    execfile (scriptName, scriptglobal)
  File "bar.py", line 6, in <module>
    onwindowcreate('Foobar', 'error_cb')
  File "/usr/lib/python2.6/site-packages/ldtp.py", line 1994, in onwindowcreate
    _callbackFunctions [windowTitle][1].exit ()
AttributeError: 'int' object has no attribute 'exit'


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=586291.


More information about the LDTP-dev mailing list