Skip to content

Commit

Permalink
Fix to load test from the same commit as the listed tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashatyrev committed Sep 6, 2017
1 parent 1eb2211 commit ab3696a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ public void testVMGitHub() throws ParseException {
@Test // testing full suite
public void testRandomVMGitHub() throws ParseException {

String shacommit = "c5eafb85390eee59b838a93ae31bc16a5fd4f7b1";
List<String> fileNames = getFileNamesForTreeSha(shacommit);
String treeSha = "c5eafb85390eee59b838a93ae31bc16a5fd4f7b1";
List<String> fileNames = getFileNamesForTreeSha(treeSha);
List<String> excludedFiles =
Collections.singletonList(
""
Expand All @@ -171,7 +171,7 @@ public void testRandomVMGitHub() throws ParseException {

if (excludedFiles.contains(fileName)) continue;
System.out.println("Running: " + fileName);
String json = JSONReader.loadJSON("VMTests//RandomTests/" + fileName);
String json = JSONReader.loadJSONFromCommit("VMTests//RandomTests/" + fileName, shacommit);
GitHubJSONTestSuite.runGitHubJsonVMTest(json);
}

Expand Down

0 comments on commit ab3696a

Please sign in to comment.