X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/764d110156e4951ca5671a700ee2402fa3597734..ca2160163b2a8209e5b04e155a8f4dafbe9334c8:/t/t1301-assimilate.sh diff --git a/t/t1301-assimilate.sh b/t/t1301-assimilate.sh index 906f5bb..7f47c31 100755 --- a/t/t1301-assimilate.sh +++ b/t/t1301-assimilate.sh @@ -5,7 +5,7 @@ test_description='Test the assimilate command.' test_expect_success \ 'Assimilate in a non-initialized repository' \ - 'stg assimilate' + '! stg assimilate' test_expect_success \ 'Initialize the StGIT repository' \ @@ -75,12 +75,10 @@ test_expect_success \ git pull . br ' -test_expect_success \ - 'Try (and fail) to assimilate the merge commit' \ - ' +test_expect_success 'Assimilate in the presence of a merge commit' ' [ $(stg applied | wc -l) -eq 5 ] && - ! stg assimilate && - [ $(stg applied | wc -l) -eq 5 ] - ' + stg assimilate && + [ $(stg applied | wc -l) -eq 0 ] +' test_done