mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-15 00:50:22 -06:00
Added a test for merging two branches that both create different tables
This commit is contained in:
@@ -324,3 +324,22 @@ teardown() {
|
||||
[[ "$output" =~ "unsupported characters" ]] || false
|
||||
}
|
||||
|
||||
@test "two branches both create different tables. merge. no conflict" {
|
||||
dolt branch table1
|
||||
dolt branch table2
|
||||
dolt checkout table1
|
||||
dolt table create -s=$BATS_TEST_DIRNAME/helper/1pk5col-ints.schema table1
|
||||
dolt add table1
|
||||
dolt commit -m "first table"
|
||||
dolt checkout table2
|
||||
dolt table create -s=$BATS_TEST_DIRNAME/helper/2pk5col-ints.schema table2
|
||||
dolt add table2
|
||||
dolt commit -m "second table"
|
||||
dolt checkout master
|
||||
run dolt merge table1
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "Fast-forward" ]] || false
|
||||
run dolt merge table2
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "Updating" ]] || false
|
||||
}
|
||||
@@ -279,6 +279,7 @@ teardown() {
|
||||
dolt commit -m "another test commit"
|
||||
run dolt pull origin
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" =~ "Updating" ]] || false
|
||||
}
|
||||
|
||||
@test "generate a merge with a conflict with a remote branch" {
|
||||
|
||||
Reference in New Issue
Block a user