Specifically, this import fails when using a qualified name:
# First let's try python3, without python2 path
defaultpy="/usr/bin/python3"
import_error=$(adb shell "cd /home/phablet/autopilot; $defaultpy -c 'import
$TESTSUITE'")
if [ -n "$import_error" ]; then
echo 'running with python2'
defaultpy="PYTHONPATH=/home/phablet/autopilot/legacy-py2:/home/phablet/autopilot
/usr/bin/python"
fi
So if you run like this, it's a simple name and imports fine
phablet-test-run ubuntu_clock_app
if you run like this, it fails to import, causing it to fallback to
python2:
phablet-test-run ubuntu_clock_app.tests.testMainView
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321463
Title:
Cannot run individual AP tests using phablet-test-run
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/phablet-tools/+bug/1321463/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs