X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/1eae3bf5ef8561508d83845f27b61c7533ba3378..58f09cf20b44f502fc56d56383461b71b7ae42fd:/t/t2700-refresh.sh?ds=sidebyside diff --git a/t/t2700-refresh.sh b/t/t2700-refresh.sh index 9eae85d..aad6d45 100755 --- a/t/t2700-refresh.sh +++ b/t/t2700-refresh.sh @@ -33,7 +33,7 @@ test_expect_success 'Refresh top patch' ' stg status && test -z "$(stg status)" && stg patches foo3.txt > patches.txt && - diff -u expected.txt patches.txt + test_cmp expected.txt patches.txt ' cat > expected.txt < patches.txt && - diff -u expected.txt patches.txt + test_cmp expected.txt patches.txt ' cat > expected.txt < patches.txt && - diff -u expected.txt patches.txt + test_cmp expected.txt patches.txt ' cat > expected.txt < patches.txt && git diff HEAD^..HEAD > show.txt && stg diff > diff.txt && - diff -u expected.txt patches.txt && - diff -u expected2.txt show.txt && - diff -u expected3.txt diff.txt && + test_cmp expected.txt patches.txt && + test_cmp expected2.txt show.txt && + test_cmp expected3.txt diff.txt && stg new p5 -m "cleanup again" && stg refresh ' + +test_expect_success 'Refresh moved files' ' + git mv foo1.txt foo1-new.txt && + stg refresh +' + test_done