Merge ~sylvain-pineau/plainbox-provider-checkbox:fix-1839903 into plainbox-provider-checkbox:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 223f5f72d95cd1e9256eb51a9b9df4c4fc6e8cb7
Merged at revision: 073d5a4f2b32497e29ed6363e6364f9fee365f43
Proposed branch: ~sylvain-pineau/plainbox-provider-checkbox:fix-1839903
Merge into: plainbox-provider-checkbox:master
Diff against target: 16 lines (+4/-1)
1 file modified
bin/fde_tests.py (+4/-1)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Jonathan Cave (community) Needs Information
Review via email: mp+372541@code.launchpad.net

Description of the change

Fix FDE test on core18, tested on both munich and tillamook

To post a comment you must log in.
Revision history for this message
Jonathan Cave (jocave) wrote :

I would like to know what has changed that means the test that worked on UC16 and uses a command that works in a normal shell, does not seem to work in checkbox on UC18. This is useful info and could help inform other testing.

Would need to check whether the suggested alternative works on other FDE devices too (including UC16)

review: Needs Information
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I'll need this fix to run the test on UC18 projects this week.

It was tested on UC18 (munich) and UC16 (tillamook).

Let's open a bug to track what has changed and start investigating.

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I'm landing the fix, self-approving

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/bin/fde_tests.py b/bin/fde_tests.py
2index 3008735..fd9ea14 100755
3--- a/bin/fde_tests.py
4+++ b/bin/fde_tests.py
5@@ -28,7 +28,10 @@ def main():
6 base_mount = '/' if on_desktop else '/writable'
7
8 # discover the underlying mount point for the encrypted part
9- cmd = 'findmnt {} -n -o SOURCE'.format(base_mount)
10+ if on_desktop:
11+ cmd = 'findmnt {} -n -o SOURCE'.format(base_mount)
12+ else:
13+ cmd = 'findfs LABEL=writable'
14 print('+ {}'.format(cmd))
15 try:
16 source = sp.check_output(cmd, shell=True).decode(

Subscribers

People subscribed via source and target branches