X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/8bcdcdc99a819905d837ad90dd02aa3611c3144e..d34d6e351e9708f4a5ce519e508abbc418285b5e:/t/t1501-sink.sh diff --git a/t/t1501-sink.sh b/t/t1501-sink.sh index 2767c4c..a0769dd 100755 --- a/t/t1501-sink.sh +++ b/t/t1501-sink.sh @@ -29,37 +29,37 @@ test_expect_success 'Initialize StGit stack' ' ' test_expect_success 'sink default without applied patches' ' - ! stg sink + command_error stg sink ' test_expect_success 'sink and reorder specified without applied patches' ' stg sink p2 p1 && - test "$(echo $(stg applied))" = "p2 p1" + test "$(echo $(stg series --applied --noprefix))" = "p2 p1" ' test_expect_success 'sink patches to the bottom of the stack' ' stg sink p4 p3 p2 && - test "$(echo $(stg applied))" = "p4 p3 p2 p1" + test "$(echo $(stg series --applied --noprefix))" = "p4 p3 p2 p1" ' test_expect_success 'sink current below a target' ' stg sink --to=p2 && - test "$(echo $(stg applied))" = "p4 p3 p1 p2" + test "$(echo $(stg series --applied --noprefix))" = "p4 p3 p1 p2" ' test_expect_success 'bring patches forward' ' stg sink --to=p2 p3 p4 && - test "$(echo $(stg applied))" = "p1 p3 p4 p2" + test "$(echo $(stg series --applied --noprefix))" = "p1 p3 p4 p2" ' test_expect_success 'sink specified patch below a target' ' stg sink --to=p3 p2 && - test "$(echo $(stg applied))" = "p1 p2 p3 p4" + test "$(echo $(stg series --applied --noprefix))" = "p1 p2 p3 p4" ' test_expect_success 'sink with conflict' ' - ! stg sink --to=p2 p22 && - test "$(echo $(stg applied))" = "p1 p22" && + conflict stg sink --to=p2 p22 && + test "$(echo $(stg series --applied --noprefix))" = "p1 p22" && test "$(echo $(stg status -c))" = "f2" '