Skip to content

Thekick_off method is broken for AndroidTarget #623

@marcbonnici

Description

@marcbonnici

The kick_off method with Android Target is currently broken, it either exhibits blocking behaviour on the command to be ran or fails to run the command correctly.

Example blocking behaviour reproducer:

from devlib import AndroidTarget
target = AndroidTarget()
target.kick_off('sleep 10; echo "Completed" > /sdcard/sleep.log')   # This command blocks until the command completes.

Example failure to execute reproducers:

target.kick_off('echo "Testing" > /sdcard/testing')
target.execute('cat /sdcard/testing')
"nohup: can't execute 'echo': No such file or directory\n"
target.kick_off('ls')
TargetTransientError: adb has returned early; did not get an exit code. Was kill-server invoked?
OUTPUT:
-----

0
nohup: appending output to nohup.out

-----
STDERR:
-----

-----

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions