X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/ea5b7bf3533205be4268d8e7d79198344161c819..d0329a7785d86495fd02ca595d9cb94fc67cdf4d:/t/t1205-push-subdir.sh diff --git a/t/t1205-push-subdir.sh b/t/t1205-push-subdir.sh index 175d36d..2d5918b 100755 --- a/t/t1205-push-subdir.sh +++ b/t/t1205-push-subdir.sh @@ -12,8 +12,8 @@ test_expect_success 'Create some patches' ' git add x.txt foo/y.txt && stg refresh done && - [ "$(echo $(stg applied))" = "p0 p1 p2" ] && - [ "$(echo $(stg unapplied))" = "" ] + [ "$(echo $(stg series --applied --noprefix))" = "p0 p1 p2" ] && + [ "$(echo $(stg series --unapplied --noprefix))" = "" ] ' test_expect_success 'Fast-forward push from a subdir' ' @@ -47,7 +47,7 @@ test_expect_success 'Conflicting push from subdir' ' [ "$(echo $(cat x.txt))" = "x0" ] && [ "$(echo $(cat foo/y.txt))" = "y0" ] && cd foo && - ! stg push p2 && + conflict stg push p2 && cd .. && [ "$(echo $(stg status --conflict))" = "foo/y.txt x.txt" ] ' @@ -62,7 +62,7 @@ test_expect_success 'Conflicting add/unknown file in subdir' ' stg pop && mkdir -p d && echo bar > d/test && - ! stg push foo && + command_error stg push foo && [ $(stg top) != "foo" ] '