mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-09 10:38:10 -06:00
Show off use of dolt sql-client instead of server_query
This commit is contained in:
@@ -45,13 +45,14 @@ teardown() {
|
||||
dolt checkout -b other
|
||||
start_sql_server repo1
|
||||
|
||||
run server_query repo1 1 dolt "" "call dolt_push()" "" "" 1
|
||||
run dolt sql-client --use-db repo1 -P $PORT -u dolt -q "call dolt_push()"
|
||||
[ $status -ne 0 ]
|
||||
[[ "$output" =~ "the current branch has no upstream branch" ]] || false
|
||||
|
||||
server_query repo1 1 dolt "" "call dolt_push('--set-upstream', 'origin', 'other') " ""
|
||||
|
||||
dolt sql-client --use-db repo1 -P $PORT -u dolt -q "call dolt_push('--set-upstream', 'origin', 'other')"
|
||||
|
||||
skip "In-memory branch doesn't track upstream"
|
||||
server_query repo1 1 dolt "" "call dolt_push()" ""
|
||||
dolt sql-client --use-db repo1 -P $PORT -u dolt -q "call dolt_push()"
|
||||
}
|
||||
|
||||
@test "remotes-sql-server: push on sql-session commit" {
|
||||
|
||||
Reference in New Issue
Block a user