X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/9979bb8433f887c394e7e5b328d387479997ffd7..c7506039d0299c093140857b7a617ec6bcdbfc13:/t/t2701-refresh-p.sh diff --git a/t/t2701-refresh-p.sh b/t/t2701-refresh-p.sh index d42e90f..3ba3b02 100755 --- a/t/t2701-refresh-p.sh +++ b/t/t2701-refresh-p.sh @@ -15,7 +15,7 @@ test_expect_success 'Initialize StGit stack' ' stg init && for i in 1 2; do echo x > $i.txt && - git add $i.txt && + stg add $i.txt && stg new p$i -m "Patch $i" && stg refresh done @@ -29,18 +29,18 @@ EOF cat > expected2.txt < status1.txt && - diff -u expected0.txt status1.txt && + test_cmp expected0.txt status1.txt && echo y > new.txt && - git add new.txt && + stg add new.txt && stg refresh -p p1 && stg status > status2.txt && - diff -u expected0.txt status2.txt && + test_cmp expected0.txt status2.txt && stg files p1 > files1.txt && - diff -u expected1.txt files1.txt && + test_cmp expected1.txt files1.txt && stg files p2 > files2.txt && - diff -u expected2.txt files2.txt + test_cmp expected2.txt files2.txt ' test_done