diff options
author | Eric Rowe <erowe@google.com> | 2014-09-04 18:22:29 -0700 |
---|---|---|
committer | Eric Rowe <erowe@google.com> | 2014-09-04 18:22:29 -0700 |
commit | 2429e6feef157072b4c980ce1b8fe07a3570011b (patch) | |
tree | 29579bfc227fb72e39d8909dcf8040487986e71d | |
parent | 4bdfbe7c40c5b811bdf5f2b0a5af7e0ad46a3b64 (diff) | |
download | tradefederation-2429e6feef157072b4c980ce1b8fe07a3570011b.tar.gz |
Fix off by one error
Change-Id: I59daf5bd5971eddc2c0425faf03121f9f3f19a46
-rw-r--r-- | prod-tests/src/com/android/wireless/tests/TelephonyTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prod-tests/src/com/android/wireless/tests/TelephonyTest.java b/prod-tests/src/com/android/wireless/tests/TelephonyTest.java index cfab3928e..8fae8e317 100644 --- a/prod-tests/src/com/android/wireless/tests/TelephonyTest.java +++ b/prod-tests/src/com/android/wireless/tests/TelephonyTest.java @@ -171,11 +171,11 @@ public class TelephonyTest implements IRemoteTest, IDeviceTest { if (m.group(3) != null) { final int failureCode = Integer.parseInt(m.group(3)); final String key = FAILURE_KEYS[failureCode]; - failures.put(key, failures.get(key) + 1); - return recordedIteration - 1; + failures.put(key, 1); + return recordedIteration; } - return recordedIteration; + return recordedIteration + 1; } catch (IOException e) { CLog.e("IOException while reading outputfile %s", resFile.getAbsolutePath()); failures.put(TEST_FAILURE_KEY, failures.get(TEST_FAILURE_KEY) + 1); |