aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Rowe <erowe@google.com>2014-09-04 18:22:29 -0700
committerEric Rowe <erowe@google.com>2014-09-04 18:22:29 -0700
commit2429e6feef157072b4c980ce1b8fe07a3570011b (patch)
tree29579bfc227fb72e39d8909dcf8040487986e71d
parent4bdfbe7c40c5b811bdf5f2b0a5af7e0ad46a3b64 (diff)
downloadtradefederation-2429e6feef157072b4c980ce1b8fe07a3570011b.tar.gz
Fix off by one error
Change-Id: I59daf5bd5971eddc2c0425faf03121f9f3f19a46
-rw-r--r--prod-tests/src/com/android/wireless/tests/TelephonyTest.java6
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);