aboutsummaryrefslogtreecommitdiff
path: root/crosperf/generate_report.py
AgeCommit message (Collapse)Author
2020-01-30crosperf: migration to python 3Zhizhou Yang
This patch migrates crosperf and its utils to python 3. TEST=Passed presubmit check; tested with simple experiment locally. BUG=chromium:1011676 Change-Id: Ib2a9f9c7cf6a1bb1d0b42a1dd3d9e3cbb4d70a36 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2003796 Tested-by: Zhizhou Yang <zhizhouy@google.com> Reviewed-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Caroline Tice <cmtice@chromium.org> Commit-Queue: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com>
2020-01-16crosperf: fix pylint for crosperfZhizhou Yang
This is the first step of python 3 migration for crosperf TEST=Passed presubmit for all .py files in crosperf BUG=chromium:1011676 Change-Id: I615d0323c81ba688c8ce2aa0cac307035d0b882b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2001696 Commit-Queue: Zhizhou Yang <zhizhouy@google.com> Tested-by: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com> Reviewed-by: George Burgess <gbiv@chromium.org>
2017-04-08[toolchain-utils] Fix remaining lint errors in toolchain-utils.Caroline Tice
In addition to fixing the lint errors, this also fixes the Python formatting issues (ran tc_pyformat on nearly all the files). BUG=chromium:570450 TEST=Ran all crosperf & bisect tool unit tests. Ran afe_lock_machine.py (check machine status) Ran full crosperf test (octane, speedometer, BootPerf) on alex. Change-Id: Ic86f9192801ac67769f3de30f1c5f0d203ce0831 Reviewed-on: https://chromium-review.googlesource.com/471886 Commit-Ready: Caroline Tice <cmtice@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
2016-09-23[crosperf] Make generate_report report actual failures.George Burgess IV
We would never increment `num_success`, so we'd always return failure. This passed tests, since there were no tests that checked for success. Also, testRunActionsRunsAllActionsRegardlessOfExceptions wasn't really doing what it was supposed to; exceptions wouldn't get raised (since the mocked WriteFile turns into a nop), so all of the WriteFile actions were "passing". Because of the aforementioned bug, this test seemed to work, as well. BUG=None TEST=generate_report_unittest.py passes; cros lint is happy. Change-Id: If4d71af3415d97be8d5ac3bec796fe4589d50aaa Reviewed-on: https://chrome-internal-review.googlesource.com/289802 Commit-Ready: George Burgess <gbiv@google.com> Tested-by: George Burgess <gbiv@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
2016-09-12crosperf: Add generate_report.py.George Burgess IV
This script allows us to generate HTML, JSON, text, and email reports for JSON inputs, rather than needing to run things through crosperf. BUG=chromium:641098 TEST=cros lint on new files passes, ./run_tests.sh passes. Change-Id: I213149c0feca8b97f72fb447030c670e2f631a87 Reviewed-on: https://chrome-internal-review.googlesource.com/285238 Commit-Ready: George Burgess <gbiv@google.com> Tested-by: George Burgess <gbiv@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>