diff options
author | Eric Rowe <erowe@google.com> | 2014-09-02 10:25:19 -0700 |
---|---|---|
committer | Eric Rowe <erowe@google.com> | 2014-09-02 10:25:19 -0700 |
commit | 882436c604ef34cbb47e4d3569d238ad65197879 (patch) | |
tree | 4093f81c8f051119be11d7fcb5a0759fff9896d2 | |
parent | d05535f4e7aa197baf77e777ea62ba8572ba6f7d (diff) | |
download | tradefederation-882436c604ef34cbb47e4d3569d238ad65197879.tar.gz |
Fix telephony test parsing
Change-Id: I7bb8ee967f49c99c2bca3cec27901697e24094c8
-rw-r--r-- | prod-tests/src/com/android/wireless/tests/TelephonyStabilityTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/prod-tests/src/com/android/wireless/tests/TelephonyStabilityTest.java b/prod-tests/src/com/android/wireless/tests/TelephonyStabilityTest.java index 26d1e0af8..471f1e6ac 100644 --- a/prod-tests/src/com/android/wireless/tests/TelephonyStabilityTest.java +++ b/prod-tests/src/com/android/wireless/tests/TelephonyStabilityTest.java @@ -212,15 +212,17 @@ public class TelephonyStabilityTest implements IRemoteTest, IDeviceTest { return currentIteration; } + CLog.i("Parsed line was \"%s\"", line); + final int recordedIteration = Integer.parseInt(m.group(1)); metrics.put(VOICE_REGISTRATION_KEY, metrics.get(VOICE_REGISTRATION_KEY) + Integer.parseInt(m.group(2))); metrics.put(VOICE_CONNECTION_KEY, - metrics.get(VOICE_CONNECTION_KEY) + Integer.parseInt(m.group(2))); + metrics.get(VOICE_CONNECTION_KEY) + Integer.parseInt(m.group(3))); metrics.put(DATA_REGISTRATION_KEY, - metrics.get(DATA_REGISTRATION_KEY) + Integer.parseInt(m.group(2))); + metrics.get(DATA_REGISTRATION_KEY) + Integer.parseInt(m.group(4))); metrics.put(DATA_CONNECTION_KEY, - metrics.get(DATA_CONNECTION_KEY) + Integer.parseInt(m.group(2))); + metrics.get(DATA_CONNECTION_KEY) + Integer.parseInt(m.group(5))); return Math.max(recordedIteration, currentIteration); } catch (IOException e) { |