mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 00:39:40 -06:00
short dolt procs (#3369)
This commit is contained in:
committed by
GitHub
parent
e31c4c8061
commit
9154d2e5dd
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user