Skip to content

Commit

Permalink
There is no default trace
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Oct 25, 2023
1 parent 1999d94 commit 020dc25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tla/consensus/Traceccfraft.tla
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ IsAppendEntriesResponse(msg, dst, src, logline) ==
ASSUME TLCGet("config").mode = "bfs"

JsonFile ==
IF "JSON" \in DOMAIN IOEnv THEN IOEnv.JSON ELSE "traces/election.ndjson"
IF "JSON" \in DOMAIN IOEnv THEN IOEnv.JSON ELSE Print("The JSON environment variable is not set.", FALSE)

JsonLog ==
\* Deserialize the System log as a sequence of records from the log file.
\* Run TLC with (assuming a suitable "tlc" shell alias):
\* $ JSON=../tests/raft_scenarios/4582.ndjson tlc -note Traceccfraft
\* Fall back to trace.ndjson if the JSON environment variable is not set.
\* $ JSON=../build/election.ndjson tlc -note Traceccfraft
ndJsonDeserialize(JsonFile)

TraceLog ==
Expand Down

0 comments on commit 020dc25

Please sign in to comment.