chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
String comparison is done with "=", not "=="
[stgit]
/
t
/
t2000-sync.sh
diff --git
a/t/t2000-sync.sh
b/t/t2000-sync.sh
index 3dd1cd6f34cc4960e59cad0728db421253375646..02345bb0edfd7227e5fa8bd876f4ef8a6d7a3d24 100755
(executable)
--- a/
t/t2000-sync.sh
+++ b/
t/t2000-sync.sh
@@
-47,7
+47,7
@@
test_expect_success \
'
stg sync -b master p2 &&
test $(stg applied -c) -eq 3 &&
'
stg sync -b master p2 &&
test $(stg applied -c) -eq 3 &&
- test $(cat foo2.txt) =
=
"foo2"
+ test $(cat foo2.txt) = "foo2"
'
test_expect_success \
'
test_expect_success \
@@
-55,8
+55,8
@@
test_expect_success \
'
stg sync -b master -a &&
test $(stg applied -c) -eq 3 &&
'
stg sync -b master -a &&
test $(stg applied -c) -eq 3 &&
- test $(cat foo1.txt) =
=
"foo1" &&
- test $(cat foo2.txt) =
=
"foo2"
+ test $(cat foo1.txt) = "foo1" &&
+ test $(cat foo2.txt) = "foo2"
'
test_expect_success \
'
test_expect_success \
@@
-64,9
+64,9
@@
test_expect_success \
'
stg sync -s patches-master/series -a &&
test $(stg applied -c) -eq 3 &&
'
stg sync -s patches-master/series -a &&
test $(stg applied -c) -eq 3 &&
- test $(cat foo1.txt) =
=
"foo1" &&
- test $(cat foo2.txt) =
=
"foo2" &&
- test $(cat foo3.txt) =
=
"foo3"
+ test $(cat foo1.txt) = "foo1" &&
+ test $(cat foo2.txt) = "foo2" &&
+ test $(cat foo3.txt) = "foo3"
'
test_expect_success \
'
test_expect_success \
@@
-92,7
+92,7
@@
test_expect_success \
'
stg sync -b master p2 &&
test $(stg applied -c) -eq 3 &&
'
stg sync -b master p2 &&
test $(stg applied -c) -eq 3 &&
- test $(cat bar2.txt) =
=
"bar2"
+ test $(cat bar2.txt) = "bar2"
'
test_expect_failure \
'
test_expect_failure \