X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/923309140a6f091df9ed7120d7c818586c980c86..a3d7efccc515eeb12001a46ea0b781133768b23c:/t/t3000-dirty-merge.sh diff --git a/t/t3000-dirty-merge.sh b/t/t3000-dirty-merge.sh index dd81c9e..f0f79d5 100755 --- a/t/t3000-dirty-merge.sh +++ b/t/t3000-dirty-merge.sh @@ -22,13 +22,13 @@ test_expect_success 'Pop one patch and update the other' ' stg refresh ' -test_expect_failure 'Push with dirty worktree' ' +test_expect_success 'Push with dirty worktree' ' echo 4 > a && - [ "$(echo $(stg applied))" = "p1" ] && - [ "$(echo $(stg unapplied))" = "p2" ] && - ! stg goto p2 && - [ "$(echo $(stg applied))" = "p1" ] && - [ "$(echo $(stg unapplied))" = "p2" ] && + [ "$(echo $(stg series --applied --noprefix))" = "p1" ] && + [ "$(echo $(stg series --unapplied --noprefix))" = "p2" ] && + conflict stg goto p2 && + [ "$(echo $(stg series --applied --noprefix))" = "p1" ] && + [ "$(echo $(stg series --unapplied --noprefix))" = "p2" ] && [ "$(echo $(cat a))" = "4" ] '