[LDTP-Dev] launchapp

Araceli Pulido araceli.pulido at canonical.com
Thu Oct 9 07:00:45 PDT 2008


More findings on this.

If I run the code below:

#!/usr/bin/python

#from ldtp import *
import os

try:
    os.execlp('update-manager', '-d', '-d')
    
except LdtpExecutionError, msg:
    raise

(ldtp import is commented out)
then update manager gets recognized by at-poke

but if I then run

#!/usr/bin/python

from ldtp import *
import os

try:
    os.execlp('update-manager', '-d', '-d')
    
except LdtpExecutionError, msg:
    raise

importing ldtp, then the update-manager does not get properly
recognized.

Any ideas?

Thanks,
Ara.


On Thu, 2008-10-09 at 15:23 +0200, Ara Pulido wrote:
> Hello guys,
> 
> Everytime I try to run an application through launchapp or execlp, it
> does not get recognized through at-poke or ldtp.
> 
> Is there something that I am missing?
> 
> Particularly I am trying to run Ubuntu's update manager for distribution
> upgrades:
> 
> $ update-manager -d
> 
> For which I do: 
> 
> launchapp('update-manager', ['update-manager', '-d'], 1)
> 
> or
> 
> launchapp('update-manager', ['update-manager', '-d'], 0)
> 
> or 
> 
> os.execlp('update-manager', 'update-manager', '-d')
> 
> In the three cases the application runs correctly, but it does not get
> recognized by at-poke or ldtp.
> 
> Thanks,
> Ara.
> 
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev



More information about the LDTP-dev mailing list