Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Dec 9, 2022
1 parent 972a2c9 commit 9887316
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
pull_request:
schedule:
- cron: '40 * * * *'
- cron: '0 13 * * *'

jobs:
unit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public class SequenceBase {
private static final String SYSTEM_LOG = "system.log";
private static final String SEQUENCE_MD = "sequence.md";
private static final long CLEAN_START_DELAY_MS = 20 * 1000;
private static final String WAITING_FOR_GODOT = "nothing";
protected static Metadata deviceMetadata;
protected static String projectId;
protected static String cloudRegion;
Expand Down Expand Up @@ -403,9 +404,10 @@ public void valid_serial_no() {
}

private void recordResult(String result, String methodName, String message) {
notice(String.format(RESULT_FORMAT, result, methodName, message));
String resultString = String.format(RESULT_FORMAT, result, methodName, message);
notice(resultString);
try (PrintWriter log = new PrintWriter(new FileOutputStream(resultSummary, true))) {
log.printf(RESULT_FORMAT, result, methodName, message);
log.print(resultString);
} catch (Exception e) {
throw new RuntimeException("While writing report summary " + resultSummary.getAbsolutePath(),
e);
Expand Down Expand Up @@ -738,7 +740,7 @@ private void messageEvaluateLoop(Supplier<Boolean> evaluator) {
processMessage();
}
info(String.format("finished %s after %s", waitingCondition, timeSinceStart()));
waitingCondition = "nothing";
waitingCondition = WAITING_FOR_GODOT;
}

private void recordSequence(String step) {
Expand Down

0 comments on commit 9887316

Please sign in to comment.