autopilot testsuite doesn't pass in touch image

Bug #1228170 reported by Loïc Minier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cordova-ubuntu (Ubuntu)
Expired
Critical
Unassigned

Bug Description

Hi,

while running autopilot testsuite for cordova, I get:
./phablet-test-run -n -p cordova-ubuntu-autopilot cordova_ubuntu
[...]
adbd is already running as root
Reading package lists...
Building dependency tree...
Reading state information...
cordova-ubuntu-autopilot is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Disabling shell
unity8 stop/waiting
sh: 1: gcc: not found
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
Loading tests from: /usr/lib/python2.7/dist-packages

Tests running...
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene /usr/lib/python2.7/dist-packages/tools/qml/main-local.qml /usr/share/cordova-ubuntu-tests/autopilot-tests/qml/main.qml
======================================================================
FAIL: cordova_ubuntu.tests.test_mobilespec.TestMobileSpec.test_mobilespec
----------------------------------------------------------------------
_StringException: Empty attachments:
process-stdout

It seems to miss a dep on gcc?

Cheers,

Revision history for this message
Loïc Minier (lool) wrote :

Even after adding gcc, I get:
adbd is already running as root
Reading package lists...
Building dependency tree...
Reading state information...
cordova-ubuntu-autopilot is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Disabling shell
unity8 stop/waiting
Loading tests from: /usr/lib/python2.7/dist-packages

Tests running...
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene /usr/lib/python2.7/dist-packages/tools/qml/main-local.qml /usr/share/cordova-ubuntu-tests/autopilot-tests/qml/main.qml
======================================================================
ERROR: cordova_ubuntu.tests.test_mobilespec.TestMobileSpec.test_mobilespec
----------------------------------------------------------------------
_StringException: Empty attachments:
process-stdout

process-return-code: {{{-15}}}
process-stderr: {{{
unknown option -- t
unknown option -- e
unknown option -- s
unknown option -- t
unknown option -- a
unknown option -- b
unknown option -- i
unknown option -- l
unknown option -- i
unknown option -- t
unknown option -- y
loaded the dummy plugin
loaded the Linux plugin
Registered the AalSensorPlugin types

Loading testability driver.
Using "/usr/share/cordova-ubuntu-tests/cordovamobilespec/www" as working dir
Using "/usr/share/cordova-ubuntu-tests/cordovamobilespec/www" as working dir
callbacks 0x40074915 0x400748c1
creating surface at (0, 58) with size (768, 1222) with title 'qmlscene: cordovaView'file:///usr/lib/arm-linux-gnueabihf/qt5/qml/CordovaUbuntu.2.8/CordovaViewInternal.qml:2:1: plugin cannot be loaded for module "QtWebKit": Cannot load library /usr/lib/arm-linux-gnueabihf/qt5/qml/QtWebKit/libqmlwebkitplugin.so: (libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory)
}}}

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cordova_ubuntu/tests/test_mobilespec.py", line 35, in test_mobilespec
self.assertThat(web_view.loadProgress, Eventually(Equals(100)))
AttributeError: 'NoneType' object has no attribute 'loadProgress'

Ran 1 test in 1.820s
FAILED (failures=1)

summary: - autopilot testsuite doens't pass
+ autopilot testsuite doesn't pass in touch image
Revision history for this message
Loïc Minier (lool) wrote :

creating surface at (0, 58) with size (768, 1222) with title 'qmlscene: cordovaView'file:///usr/lib/arm-linux-gnueabihf/qt5/qml/CordovaUbuntu.2.8/CordovaViewInternal.qml:2:1: plugin cannot be loaded for module "QtWebKit": Cannot load library /usr/lib/arm-linux-gnueabihf/qt5/qml/QtWebKit/libqmlwebkitplugin.so: (libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory)
might relate to new webkit?

Revision history for this message
Loïc Minier (lool) wrote :

So ignore this last comment, very likely a local filesystem corruption (installing packages then rebooting, some writes not getting to the flash).

The main issue seems to be missing gcc dep but gcc is needed to run the test somehow.

Revision history for this message
Loïc Minier (lool) wrote :

And now getting:
Tests running...
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene /usr/lib/python2.7/dist-packages/tools/qml/main-local.qml /usr/share/cordova-ubuntu-tests/autopilot-tests/qml/main.qml
======================================================================
FAIL: cordova_ubuntu.tests.test_mobilespec.TestMobileSpec.test_mobilespec
----------------------------------------------------------------------
_StringException: Empty attachments:
process-stdout

process-return-code: {{{-15}}}
process-stderr: {{{
unknown option -- t
unknown option -- e
unknown option -- s
unknown option -- t
unknown option -- a
unknown option -- b
unknown option -- i
unknown option -- l
unknown option -- i
unknown option -- t
unknown option -- y
loaded the dummy plugin
loaded the Linux plugin
Registered the AalSensorPlugin types

Loading testability driver.
Using "/usr/share/cordova-ubuntu-tests/cordovamobilespec/www" as working dir
Using "/usr/share/cordova-ubuntu-tests/cordovamobilespec/www" as working dir
callbacks 0x4025d915 0x4025d8c1
creating surface at (0, 58) with size (768, 1222) with title 'qmlscene: cordovaView'
WARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release.
WARNING: The experimental API will change from version to version, or even be removed. You have been warned!

loaded the dummy plugin
loaded the Linux plugin
Registered the AalSensorPlugin types

virtual void AalMediaRecorderControl::applySettings() is not used
Error loading plugins config!
Testing "/usr/lib/cordova-ubuntu-2.8/libcoreplugins.so"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
QOpenGLShader::link: "--From Fragment Shader:
--From Vertex Shader:
Link was successful.
"
Method parameter names: ("expr")
Method parameter types: ("QVariant")
Method signature: "evalInPageUnsafe(QVariant)" return type: QVariant
Method Invoked.
Method parameter names: ("expr")
Method parameter types: ("QVariant")
Method signature: "evalInPageUnsafe(QVariant)" return type: QVariant
Method Invoked.
Method parameter names: ("expr")
Method parameter types: ("QVariant")
Method signature: "evalInPageUnsafe(QVariant)" return type: QVariant
Method Invoked.
}}}

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cordova_ubuntu/tests/test_mobilespec.py", line 57, in test_mobilespec
self.assertThat(finished, Equals(True))
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: True != False

Ran 1 test in 122.691s
FAILED (failures=1)

Revision history for this message
David Barth (dbarth) wrote :
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

This is blocking adding cordova to the image seed, please resolve asap

Changed in cordova-ubuntu (Ubuntu):
assignee: nobody → David Barth (dbarth)
importance: Undecided → Critical
David Barth (dbarth)
Changed in cordova-ubuntu (Ubuntu):
assignee: David Barth (dbarth) → nobody
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cordova-ubuntu (Ubuntu) because there has been no activity for 60 days.]

Changed in cordova-ubuntu (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.