Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ZLC format #85

Merged
merged 11 commits into from
Jun 1, 2021
Prev Previous commit
Next Next commit
Fix indexing when reading deps.zlc
  • Loading branch information
jtx1999 committed May 28, 2021
commit 15a16ad1002a1dc430c6d9a42ee61cd221777ce1
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,16 @@ public static Pair<Set<String>, Set<String>> getChangedData(String artifactsDir,
zlcLines.remove(0);
}

int testsCount = 0;
int testsCount = -1; // on PLAIN_TEXT, testsCount+1 will starts from 0
ArrayList<String> testsList = null;
if (format == ZLCFormat.INDEXED) {
try {
testsCount = Integer.parseInt(zlcLines.get(0));
} catch (NumberFormatException nfe) {
nfe.printStackTrace();
}
testsList = new ArrayList<>(zlcLines.subList(1, testsCount + 1));
}
ArrayList<String> testsList = new ArrayList<>(zlcLines.subList(1, testsCount + 1));

for (int i = testsCount + 1; i < zlcLines.size(); i++) {
String line = zlcLines.get(i);
Expand Down