Merge lp:~aacid/unity8/parse_instead_of_process into lp:unity8

Proposed by Albert Astals Cid
Status: Merged
Approved by: Michael Terry
Approved revision: 2526
Merged at revision: 2561
Proposed branch: lp:~aacid/unity8/parse_instead_of_process
Merge into: lp:unity8
Diff against target: 24 lines (+6/-2)
1 file modified
tools/scopetool.cpp (+6/-2)
To merge this branch: bzr merge lp:~aacid/unity8/parse_instead_of_process
Reviewer Review Type Date Requested Status
Michael Terry Approve
Unity8 CI Bot continuous-integration Needs Fixing
Review via email: mp+298669@code.launchpad.net

Commit message

unity-scope-tool: Use parse instead of process

This way we can pass --desktop_file_hint on the phone

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2526
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1642/
Executed test runs:
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build/2184/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2212
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2119
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2119
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2119
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2110/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2110/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2110/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2110
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2110/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2110
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2110/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2110
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2110/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2110/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2110
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2110/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2110/console

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1642/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Terry (mterry) wrote :

LGTM. CI failures seem unrelated.

Another option would be to add explicit support for --desktop_file_hint. But this works too, and it doesn't super matter for this helper tool.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/scopetool.cpp'
2--- tools/scopetool.cpp 2016-05-09 12:38:10 +0000
3+++ tools/scopetool.cpp 2016-06-29 15:52:36 +0000
4@@ -59,7 +59,7 @@
5 "Otherwise passing a path to a scope config file will open a session with\n"
6 "only that scope (assuming that the binary implementing the scope can be\n"
7 "found in the same directory as the config file).");
8- parser.addHelpOption();
9+ QCommandLineOption helpOption = parser.addHelpOption();
10 parser.addPositionalArgument("scopes", "Paths to scope config files to spawn, optionally.", "[scopes...]");
11
12 QCommandLineOption includeSystemScopes("include-system-scopes",
13@@ -70,7 +70,11 @@
14 parser.addOption(includeServerScopes);
15 parser.addOption(includeSystemScopes);
16
17- parser.process(*application);
18+ parser.parse(application->arguments());
19+
20+ if (parser.isSet(helpOption)) {
21+ parser.showHelp();
22+ }
23
24 QStringList extraScopes = parser.positionalArguments();
25

Subscribers

People subscribed via source and target branches