diff options
author | Rahul Chaudhry <rahulchaudhry@chromium.org> | 2016-01-25 16:49:21 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-01-26 11:19:17 +0000 |
commit | 748254e9a5dd7227806ca618d1f9a32ab49f4056 (patch) | |
tree | 0d4323abe9aa7b48cb4b499ba8b0da0df0d67bc8 /crosperf/results_cache_unittest.py | |
parent | 49f3f09f8b5f243949968d88ce7fd9efe1393ad9 (diff) | |
download | toolchain-utils-748254e9a5dd7227806ca618d1f9a32ab49f4056.tar.gz |
toolchain-utils: strip argv[0] before calling Main().
https://chrome-internal-review.googlesource.com/#/c/244221 fixed some
cros lint errors, and in the process, modified test_toolchains.py to
use argparse instead of optparse.
The flags parsing semantics of these modules seem to differ when they
see an argument which is not a flag. As a result, "nightly_wrapper.sh"
nightly cron jobs are failing with error: "unrecognized arguments:
/usr/local/google/crostc/toolchain-utils/test_toolchains.py"
This CL strips the argv[0] before calling Main(), since the name of
the script is not really an argument and doesn't need to be parsed.
BUG=None
TEST='nightly_wrapper.sh lumpy ...' proceeds with no error during argument parsing.
Change-Id: Idf13ab457170bb051d4d0693a887795d0c16918d
Reviewed-on: https://chrome-internal-review.googlesource.com/245868
Commit-Ready: Luis Lozano <llozano@chromium.org>
Tested-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Luis Lozano <llozano@chromium.org>
Diffstat (limited to 'crosperf/results_cache_unittest.py')
0 files changed, 0 insertions, 0 deletions