Mir

Merge lp:~robertcarr/mir/android-test-powerd-cli into lp:mir/0.1

Proposed by Robert Carr
Status: Superseded
Proposed branch: lp:~robertcarr/mir/android-test-powerd-cli
Merge into: lp:mir/0.1
Diff against target: 36 lines (+6/-2)
2 files modified
debian/control (+1/-0)
debian/rules (+5/-2)
To merge this branch: bzr merge lp:~robertcarr/mir/android-test-powerd-cli
Reviewer Review Type Date Requested Status
Daniel van Vugt Needs Resubmitting
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+192892@code.launchpad.net

This proposal has been superseded by a proposal from 2013-10-30.

Commit message

Use powerd-cli to ensure we have not suspended the display while running mir tests.

Description of the change

A pragmatic fix for: https://bugs.launchpad.net/mir/+bug/1239955 in light of https://code.launchpad.net/~chris.gagnon/mir/enabled-arm-tests/+merge/191991

As documented in the bug, in some sense this is not a mir bug, merely mir fails when the system has been put in to earlysuspend mode by some other component. See the bug for more detailed documentation.

This isn't a problem in the Unity8 scenario, as Unity8 speaks with powerd (it seems, unity-system-compositor will need to do the same).

I think as such, it's reasonable to simply ensure the system is active during our packaging test runs.

It's still potentially confusing for developers: adb shell in to phablet, but everything is off (because you stopped unity8 while the screen was blanked) and mir doesn't work. Maybe this is best solved at a different level.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1165. By Robert Carr

Fix spacing

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1166. By Robert Carr

Do not enable android tests yet

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please target for development-branch.

review: Needs Resubmitting
Revision history for this message
Kevin DuBois (kdub) wrote :

We're adding a dependency in order to make sure that another program doesn't come and mess up the environment we need for adding a test? seems like we should set up pbuilder to do this, or negotiate something in the system architecture to talk to powerd directly.

Unmerged revisions

1166. By Robert Carr

Do not enable android tests yet

1165. By Robert Carr

Fix spacing

1164. By Robert Carr

Only depend on powerd-cli on armhf

1163. By Robert Carr

Build android gtest discovery

1162. By Robert Carr

Build tests on android

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2013-10-21 16:02:28 +0000
3+++ debian/control 2013-10-28 17:55:33 +0000
4@@ -35,6 +35,7 @@
5 libudev-dev,
6 google-mock (>= 1.6.0+svn437),
7 valgrind [!arm64],
8+ powerd [armhf]
9 Standards-Version: 3.9.4
10 Homepage: https://launchpad.net/mir
11 # If you aren't a member of ~mir-team but need to upload packaging changes,
12
13=== modified file 'debian/rules'
14--- debian/rules 2013-09-23 13:52:58 +0000
15+++ debian/rules 2013-10-28 17:55:33 +0000
16@@ -11,6 +11,9 @@
17
18 #overrding dh_auto_test to get rid of --parallel during testing
19 override_dh_auto_test:
20+ifeq ($(DEB_HOST_ARCH),armhf)
21+ powerd-cli active &
22+endif
23 GTEST_OUTPUT=xml:./ dh_auto_test --max-parallel=1
24
25 COMMON_CONFIGURE_OPTIONS = \
26@@ -23,8 +26,8 @@
27 $(COMMON_CONFIGURE_OPTIONS) \
28 -DMIR_PLATFORM=android \
29 -DMIR_ENABLE_UNIT_TESTS=NO \
30- -DMIR_ENABLE_ACCEPTANCE_TESTS=NO \
31- -DMIR_ENABLE_INTEGRATION_TESTS=NO
32+ -DMIR_ENABLE_INTEGRATION_TESTS=NO \
33+ -DMIR_ENABLE_ACCEPTANCE_TESTS=NO
34 else
35 ifeq ($(DEB_HOST_ARCH),powerpc)
36 dh_auto_configure -- \

Subscribers

People subscribed via source and target branches