Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Issue 720233003: [NaCl SDK] Convert python scripts from optparse to argparse. (Closed)

Created:
6 years, 1 month ago by Sam Clegg
Modified:
5 years, 11 months ago
Reviewers:
binji
CC:
chromium-reviews, binji+watch_chromium.org, native-client-reviews_googlegroups.com, Sam Clegg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NaCl SDK] Convert python scripts from optparse to argparse. None of these changes should change the behaviour of the scripts with the exception of rst_index.py which now takes both output and input as positional parameters since they are both required. TEST=./test_all.py Committed: https://crrev.com/22adb217d481d9a2115daab9caecd9d93aff8370 Cr-Commit-Position: refs/heads/master@{#311477}

Patch Set 1 #

Patch Set 2 : #

Total comments: 120

Patch Set 3 : #

Patch Set 4 : binji comments #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+707 lines, -671 lines) Patch
M native_client_sdk/src/build_tools/build_app.py View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M native_client_sdk/src/build_tools/build_projects.py View 1 2 3 4 chunks +17 lines, -15 lines 0 comments Download
M native_client_sdk/src/build_tools/build_sdk.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -17 lines 0 comments Download
M native_client_sdk/src/build_tools/build_updater.py View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M native_client_sdk/src/build_tools/buildbot_run.py View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M native_client_sdk/src/build_tools/dsc2gyp.py View 1 2 3 2 chunks +7 lines, -8 lines 0 comments Download
M native_client_sdk/src/build_tools/dsc_info.py View 1 2 3 2 chunks +9 lines, -11 lines 0 comments Download
M native_client_sdk/src/build_tools/easy_template.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -6 lines 0 comments Download
M native_client_sdk/src/build_tools/generate_notice.py View 1 2 3 3 chunks +8 lines, -7 lines 0 comments Download
M native_client_sdk/src/build_tools/nacl-mono-archive.py View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M native_client_sdk/src/build_tools/nacl-mono-builder.py View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M native_client_sdk/src/build_tools/parse_dsc.py View 1 2 3 3 chunks +8 lines, -14 lines 0 comments Download
M native_client_sdk/src/build_tools/test_projects.py View 1 2 3 4 5 6 7 8 9 10 4 chunks +15 lines, -14 lines 0 comments Download
M native_client_sdk/src/build_tools/test_sdk.py View 1 2 3 5 chunks +14 lines, -14 lines 0 comments Download
M native_client_sdk/src/build_tools/tests/build_artifacts_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/build_tools/tests/build_version_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/build_tools/tests/easy_template_test.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -0 lines 0 comments Download
A native_client_sdk/src/build_tools/tests/test_projects_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +31 lines, -0 lines 0 comments Download
M native_client_sdk/src/build_tools/tests/verify_ppapi_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/build_tools/update_nacl_manifest.py View 1 2 3 4 5 6 7 3 chunks +14 lines, -13 lines 0 comments Download
M native_client_sdk/src/build_tools/update_sdktools.py View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M native_client_sdk/src/build_tools/verify_filelist.py View 1 2 3 4 5 6 7 3 chunks +14 lines, -18 lines 0 comments Download
M native_client_sdk/src/build_tools/verify_ppapi.py View 1 2 3 2 chunks +5 lines, -8 lines 0 comments Download
M native_client_sdk/src/doc/doxygen/doxy_cleanup.py View 1 2 3 2 chunks +9 lines, -9 lines 0 comments Download
M native_client_sdk/src/doc/doxygen/generate_docs.py View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download
M native_client_sdk/src/doc/doxygen/rst_index.py View 1 2 3 3 chunks +22 lines, -23 lines 0 comments Download
M native_client_sdk/src/test_all.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/tools/create_html.py View 3 chunks +15 lines, -18 lines 0 comments Download
M native_client_sdk/src/tools/create_nmf.py View 1 2 3 4 5 6 7 8 9 10 7 chunks +59 lines, -62 lines 0 comments Download
M native_client_sdk/src/tools/decode_dump.py View 1 2 3 2 chunks +18 lines, -21 lines 0 comments Download
M native_client_sdk/src/tools/fix_deps.py View 1 2 3 2 chunks +11 lines, -15 lines 0 comments Download
M native_client_sdk/src/tools/fix_manifest.py View 1 2 3 4 chunks +16 lines, -21 lines 0 comments Download
M native_client_sdk/src/tools/genhttpfs.py View 1 2 3 3 chunks +15 lines, -18 lines 0 comments Download
M native_client_sdk/src/tools/getos.py View 1 2 3 3 chunks +14 lines, -16 lines 0 comments Download
M native_client_sdk/src/tools/httpd.py View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M native_client_sdk/src/tools/lib/tests/quote_test.py View 1 2 3 2 chunks +37 lines, -39 lines 0 comments Download
M native_client_sdk/src/tools/nacl_config.py View 1 2 3 2 chunks +20 lines, -22 lines 0 comments Download
M native_client_sdk/src/tools/ncval.py View 1 2 3 3 chunks +9 lines, -12 lines 0 comments Download
M native_client_sdk/src/tools/oshelpers.py View 1 2 3 19 chunks +128 lines, -124 lines 0 comments Download
M native_client_sdk/src/tools/run.py View 1 2 3 3 chunks +18 lines, -20 lines 0 comments Download
M native_client_sdk/src/tools/sel_ldr.py View 1 2 3 4 4 chunks +21 lines, -24 lines 0 comments Download
M native_client_sdk/src/tools/tests/chrome_mock.py View 1 2 3 1 chunk +20 lines, -18 lines 0 comments Download
M native_client_sdk/src/tools/tests/create_html_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/tools/tests/fix_deps_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/tools/tests/getos_test.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -1 line 0 comments Download
M native_client_sdk/src/tools/tests/httpd_test.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -2 lines 0 comments Download
M native_client_sdk/src/tools/tests/nacl_config_test.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -1 line 0 comments Download
M native_client_sdk/src/tools/tests/sel_ldr_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
Sam Clegg
6 years, 1 month ago (2014-11-13 19:15:30 UTC) #2
binji
In general, there is a lot of churn here, and a lot of chances for ...
6 years, 1 month ago (2014-11-13 23:57:05 UTC) #3
Sam Clegg
OK, I'm going to split this into 3 changes and leave this once for just ...
6 years, 1 month ago (2014-11-15 02:28:25 UTC) #4
Sam Clegg
https://codereview.chromium.org/720233003/diff/20001/native_client_sdk/src/build_tools/build_projects.py File native_client_sdk/src/build_tools/build_projects.py (right): https://codereview.chromium.org/720233003/diff/20001/native_client_sdk/src/build_tools/build_projects.py#newcode7 native_client_sdk/src/build_tools/build_projects.py:7: import argparse On 2014/11/13 23:57:01, binji wrote: > sort ...
6 years ago (2014-11-30 17:55:14 UTC) #5
binji
lgtm I'm still a little concerned that we don't have sufficient test coverage for these ...
6 years ago (2014-12-08 21:58:20 UTC) #6
Sam Clegg
Added more test coverage of the arg parsing. https://codereview.chromium.org/720233003/diff/20001/native_client_sdk/src/build_tools/easy_template.py File native_client_sdk/src/build_tools/easy_template.py (right): https://codereview.chromium.org/720233003/diff/20001/native_client_sdk/src/build_tools/easy_template.py#newcode105 native_client_sdk/src/build_tools/easy_template.py:105: with ...
5 years, 11 months ago (2015-01-14 15:28:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/720233003/220001
5 years, 11 months ago (2015-01-14 15:29:16 UTC) #9
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 11 months ago (2015-01-14 15:30:41 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 15:31:51 UTC) #11
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/22adb217d481d9a2115daab9caecd9d93aff8370
Cr-Commit-Position: refs/heads/master@{#311477}

Powered by Google App Engine
This is Rietveld 408576698