mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-24 03:16:12 -05:00
Fixed test failure caused by new result set schema
This commit is contained in:
@@ -59,7 +59,7 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "sql-commit: DOLT_COMMIT with all flag, message and author" {
|
||||
run dolt sql -q "SELECT DOLT_COMMIT('-a', '-m', 'Commit1', '--author', 'John Doe <john@doe.com>')"
|
||||
run dolt sql -r csv -q "SELECT DOLT_COMMIT('-a', '-m', 'Commit1', '--author', 'John Doe <john@doe.com>') as commit_hash"
|
||||
[ $status -eq 0 ]
|
||||
DCOMMIT=$output
|
||||
|
||||
@@ -75,7 +75,7 @@ teardown() {
|
||||
[[ "$output" =~ "$regex" ]] || false
|
||||
|
||||
# Check that dolt_log has the same hash as the output of DOLT_COMMIT
|
||||
run dolt sql -q "SELECT commit_hash from dolt_log LIMIT 1"
|
||||
run dolt sql -r csv -q "SELECT commit_hash from dolt_log LIMIT 1"
|
||||
[ $status -eq 0 ]
|
||||
[[ "$output" =~ "$DCOMMIT" ]] || false
|
||||
|
||||
@@ -90,7 +90,7 @@ teardown() {
|
||||
|
||||
run dolt sql -q "SELECT DOLT_ADD('.')"
|
||||
|
||||
run dolt sql -q "SELECT DOLT_COMMIT('-m', 'Commit1', '--author', 'John Doe <john@doe.com>')"
|
||||
run dolt sql -q "SELECT DOLT_COMMIT('-m', 'Commit1', '--author', 'John Doe <john@doe.com>') as commit_hash"
|
||||
[ "$status" -eq 0 ]
|
||||
DCOMMIT=$output
|
||||
|
||||
@@ -178,4 +178,4 @@ SQL
|
||||
|
||||
get_head_commit() {
|
||||
dolt log -n 1 | grep -m 1 commit | cut -c 8-
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user