short dolt procs (#3369)

This commit is contained in:
Maximilian Hoffman
2022-05-06 18:42:13 -07:00
committed by GitHub
parent e31c4c8061
commit 9154d2e5dd
12 changed files with 218 additions and 6 deletions

View File

@@ -30,6 +30,18 @@ teardown() {
[[ "$output" =~ "$regex" ]] || false
}
@test "sql-commit: DCOMMIT without a message throws error" {
run dolt sql -q "CALL DADD('.')"
[ $status -eq 0 ]
run dolt sql -q "CALL DCOMMIT()"
[ $status -eq 1 ]
run dolt log
[ $status -eq 0 ]
regex='Initialize'
[[ "$output" =~ "$regex" ]] || false
}
@test "sql-commit: CALL DOLT_COMMIT without a message throws error" {
run dolt sql -q "CALL DOLT_ADD('.')"
[ $status -eq 0 ]