Merge ~sylvain-pineau/plainbox-provider-resource:fix_executable_res into plainbox-provider-resource:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: f34f72a25f6ad81cfcd76fb0eaf9505e71ee1bc4
Merged at revision: f0371e7070c9990789e3795881bbc9028b00f2da
Proposed branch: ~sylvain-pineau/plainbox-provider-resource:fix_executable_res
Merge into: plainbox-provider-resource:master
Diff against target: 13 lines (+1/-1)
1 file modified
jobs/resource.pxu (+1/-1)
Reviewer Review Type Date Requested Status
Jonathan Cave (community) Approve
Review via email: mp+390546@code.launchpad.net

Description of the change

Fixes the problem below:

===========================[ Running Selected Jobs ]============================
--------------[ Running job 1 / 2. Estimated time left: 0:00:03 ]---------------
-------------------[ Enumerate available system executables ]-------------------
ID: com.canonical.certification::executable
Category: com.canonical.plainbox::uncategorised
... 8< -------------------------------------------------------------------------
find: ‘/snap/checkbox-snappy/2035/usr/sbin’: No such file or directory
find: ‘/snap/checkbox-snappy/2035/usr/bin’: No such file or directory
find: ‘/snap/checkbox-snappy/2035/sbin’: No such file or directory
find: ‘/usr/local/sbin’: No such file or directory
find: ‘/usr/local/bin’: No such file or directory
find: ‘/usr/local/games’: No such file or directory
find: ‘/snap/checkbox-snappy/2035/usr/sbin’: No such file or directory
find: ‘/snap/checkbox-snappy/2035/sbin’: No such file or directory

name: [

name: aa-enabled

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

Thanks, +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/jobs/resource.pxu b/jobs/resource.pxu
2index d8ab545..ed4c7b5 100644
3--- a/jobs/resource.pxu
4+++ b/jobs/resource.pxu
5@@ -124,7 +124,7 @@ plugin: resource
6 _summary: Enumerate available system executables
7 _description: Generates a resource for all available executables
8 command:
9- xargs -n1 -d: <<< "$PATH" | xargs -I{} find -H {} -maxdepth 1 -xtype f -executable -printf "name: %f\n\n" | sort -u | awk '{print}' ORS='\n\n' || true
10+ xargs -n1 -d: <<< "$PATH" | xargs -I{} find -H {} -maxdepth 1 -xtype f -executable -printf "name: %f\n\n" 2> /dev/null | sort -u | awk '{print}' ORS='\n\n' || true
11
12 id: device
13 estimated_duration: 0.48

Subscribers

People subscribed via source and target branches