Closed Bug 1561729 Opened 5 years ago Closed 5 years ago

Add unit tests for android power.py parsing

Categories

(Testing :: Raptor, task, P1)

Version 3
task

Tracking

(firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: sparky, Assigned: sparky)

References

Details

Attachments

(2 files)

These tests will be similar to what was done for --cpu-test in test_cpu.py: https://dxr.mozilla.org/mozilla-central/source/testing/raptor/test/test_cpu.py?q=test_cpu.py&redirect_type=direct

The tests should include:

  1. A test for GP2 parsing.
  2. A test for MotoG5 parsing.
  3. A test for Android OS baseline parsing.
Assignee: nobody → gmierz2
Attached file test_power.py

I'm attaching a start to these tests here. It requires 2 batterystats.txt files from a pixel 2, and moto g5 test run. Any test works but the expected values from parsing need to be calculated by hand.

Priority: -- → P2

This patch adds three unit tests (in one file) to the set of the raptor tests. The tests include (i) an Android 8 power parsing test, (ii) an android 7 power parsing test, and (iii) a test for android OS baseline parsing (tested using android 8 data).

Priority: P2 → P1
Pushed by gmierz2@outlook.com:
https://hg.mozilla.org/integration/autoland/rev/62787e383696
Add unit tests for android power measurement parsing. r=perftest-reviewers,rwood
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: