Skip to content

Commit

Permalink
Merge pull request #1491 from informalsystems/romac/fix-verify-itf-fo…
Browse files Browse the repository at this point in the history
…rmat

Fix format of ITF trace emitted by `verify` command
  • Loading branch information
romac authored Sep 2, 2024
2 parents 396e4c1 + 44a66d2 commit 351b52a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Bumped GRPC message sizes to 1G (#1480)
- Bumped GRPC message sizes to 1G (#1480)
- Fix format of ITF trace emitted by `verify` command (#1448)

### Security

Expand Down
2 changes: 1 addition & 1 deletion quint/apalache-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ An example execution:
<!-- !test in writes an ITF trace to file -->
```
quint verify --out-itf violateOnFive.itf.json --invariant inv ./testFixture/apalache/violateOnFive.qnt
jq '.[0]."#meta".format' violateOnFive.itf.json
jq '."#meta".format' violateOnFive.itf.json
rm ./violateOnFive.itf.json
```

Expand Down
4 changes: 2 additions & 2 deletions quint/src/cliCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,8 @@ export async function verifySpec(prev: CompiledStage): Promise<CLIProcedure<Trac
console.log(chalk.red(`[${status}]`) + ' Found an issue ' + chalk.gray(`(${elapsedMs}ms).`))
}

if (prev.args.outItf) {
writeToJson(prev.args.outItf, err.traces)
if (prev.args.outItf && err.traces) {
writeToJson(prev.args.outItf, err.traces[0])
}
}
return {
Expand Down

0 comments on commit 351b52a

Please sign in to comment.