Skip to content

Commit

Permalink
Allow large jck test subsets to run longer before timeout (adoptium#4156
Browse files Browse the repository at this point in the history
)

Signed-off-by: Andrew Leonard <[email protected]>

Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard authored Nov 18, 2022
1 parent ae23bde commit 0fc48b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jck/jtrunner/JavaTestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,9 @@ public static boolean execute() throws Exception {
int jckRC = -1;
boolean endedWithinTimeLimit = false;

// Use the presence of a '/' to signify that we are running a subset of tests.
// If one of the highest level test nodes is being run it is likely to take a long time.
if ( tests.contains("/") && !isRiscv ) {
// Use the presence of more than one '/' to signify that we are running a smaller subset of tests.
// If one of the highest level subsets of tests is being run it is likely to take a long time.
if ( tests.chars().filter(c -> c == '/').count() > 1 && !isRiscv ) {
timeout = 4;
}

Expand Down

0 comments on commit 0fc48b0

Please sign in to comment.