chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'stable'
[stgit]
/
t
/
t2701-refresh-p.sh
diff --git
a/t/t2701-refresh-p.sh
b/t/t2701-refresh-p.sh
index d42e90f4a9b35dbd667900ea61bd31df79b700b1..6fb735212cb838e14246bfd19421218aa5497b36 100755
(executable)
--- a/
t/t2701-refresh-p.sh
+++ b/
t/t2701-refresh-p.sh
@@
-31,16
+31,16
@@
A 2.txt
EOF
test_expect_failure 'Add new file to non-top patch' '
stg status > status1.txt &&
EOF
test_expect_failure 'Add new file to non-top patch' '
stg status > status1.txt &&
-
diff -u
expected0.txt status1.txt &&
+
test_cmp
expected0.txt status1.txt &&
echo y > new.txt &&
git add new.txt &&
stg refresh -p p1 &&
stg status > status2.txt &&
echo y > new.txt &&
git 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 &&
stg files p1 > files1.txt &&
-
diff -u
expected1.txt files1.txt &&
+
test_cmp
expected1.txt files1.txt &&
stg files p2 > files2.txt &&
stg files p2 > files2.txt &&
-
diff -u
expected2.txt files2.txt
+
test_cmp
expected2.txt files2.txt
'
test_done
'
test_done