Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Initial setup for integration tests #80

Merged
merged 19 commits into from
Jul 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Handle command failure better
  • Loading branch information
cmoog committed Jul 29, 2020
commit 692b219e64bba190f55c9c121072353e05fb8da6
3 changes: 1 addition & 2 deletions ci/tcli/tcli.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ func (a Assertable) Assert(t *testing.T, option ...Assertion) {
if exitErr, ok := err.(*exec.ExitError); ok {
result.ExitCode = exitErr.ExitCode()
} else if err != nil {
// TODO: handle this case better
result.ExitCode = -1
slogtest.Fatal(t, "command failed to run", slog.Error(err), slog.F("command", a.cmd))
} else {
result.ExitCode = 0
}
Expand Down