Skip to content

Commit

Permalink
endtoend: better error reporting in Online DDL MySQL execution tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Sep 15, 2024
1 parent fd18ae4 commit c4e7b96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/test/endtoend/onlineddl/exec_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ func MysqlClientExecFile(t *testing.T, mysqlParams *mysql.ConnParams, testDataPa
bashCommand,
).Output()

require.NoError(t, err)
errorContent, readerr := os.ReadFile("/tmp/error.log")
require.NoError(t, readerr)
require.NoError(t, err, "error details: %s", errorContent)
return string(cmd)
}

0 comments on commit c4e7b96

Please sign in to comment.