The "test" builtin in bash accepts both "==" and "=", but it didn't
work with dash as /bin/sh.
Signed-off-by: Karl Hasselström <kha@treskal.com>
'Uncommit the patches using names' \
'
stg uncommit bar foo &&
'Uncommit the patches using names' \
'
stg uncommit bar foo &&
- [ "$(stg id foo//top)" == "$(stg id bar//bottom)" ] &&
+ [ "$(stg id foo//top)" = "$(stg id bar//bottom)" ] &&
'Uncommit the patches using prefix' \
'
stg uncommit --number=2 foobar &&
'Uncommit the patches using prefix' \
'
stg uncommit --number=2 foobar &&
- [ "$(stg id foobar1//top)" == "$(stg id foobar2//bottom)" ] &&
+ [ "$(stg id foobar1//top)" = "$(stg id foobar2//bottom)" ] &&
'Uncommit the patches using auto names' \
'
stg uncommit --number=2 &&
'Uncommit the patches using auto names' \
'
stg uncommit --number=2 &&
- [ "$(stg id foo-patch//top)" == "$(stg id bar-patch//bottom)" ] &&
+ [ "$(stg id foo-patch//top)" = "$(stg id bar-patch//bottom)" ] &&
'
stg uncommit &&
stg uncommit &&
'
stg uncommit &&
stg uncommit &&
- [ "$(stg id foo-patch//top)" == "$(stg id bar-patch//bottom)" ] &&
+ [ "$(stg id foo-patch//top)" = "$(stg id bar-patch//bottom)" ] &&
'
stg import ../t1800-import/git-diff &&
[ $(git cat-file -p $(stg id) \
'
stg import ../t1800-import/git-diff &&
[ $(git cat-file -p $(stg id) \
- | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") == 1 ] &&
+ | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") = 1 ] &&
'
stg import ../t1800-import/gnu-diff &&
[ $(git cat-file -p $(stg id) \
'
stg import ../t1800-import/gnu-diff &&
[ $(git cat-file -p $(stg id) \
- | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") == 1 ] &&
+ | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") = 1 ] &&
'
stg import ../t1800-import/stg-export &&
[ $(git cat-file -p $(stg id) \
'
stg import ../t1800-import/stg-export &&
[ $(git cat-file -p $(stg id) \
- | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") == 1 ] &&
+ | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") = 1 ] &&
'
stg import -m ../t1800-import/email-8bit &&
[ $(git cat-file -p $(stg id) \
'
stg import -m ../t1800-import/email-8bit &&
[ $(git cat-file -p $(stg id) \
- | grep -c "tree 030be42660323ff2a1958f9ee79589a4f3fbee2f") == 1 ] &&
+ | grep -c "tree 030be42660323ff2a1958f9ee79589a4f3fbee2f") = 1 ] &&
[ $(git cat-file -p $(stg id) \
[ $(git cat-file -p $(stg id) \
- | grep -c "author Inge Ström <inge@power.com>") == 1 ] &&
+ | grep -c "author Inge Ström <inge@power.com>") = 1 ] &&
'
stg import -m ../t1800-import/email-qp &&
[ $(git cat-file -p $(stg id) \
'
stg import -m ../t1800-import/email-qp &&
[ $(git cat-file -p $(stg id) \
- | grep -c "tree 030be42660323ff2a1958f9ee79589a4f3fbee2f") == 1 ] &&
+ | grep -c "tree 030be42660323ff2a1958f9ee79589a4f3fbee2f") = 1 ] &&
[ $(git cat-file -p $(stg id) \
[ $(git cat-file -p $(stg id) \
- | grep -c "author Inge Ström <inge@power.com>") == 1 ] &&
+ | grep -c "author Inge Ström <inge@power.com>") = 1 ] &&
'
stg import -M ../t1800-import/email-mbox &&
[ $(git cat-file -p $(stg id change-1) \
'
stg import -M ../t1800-import/email-mbox &&
[ $(git cat-file -p $(stg id change-1) \
- | grep -c "tree 401bef82cd9fb403aba18f480a63844416a2e023") == 1 ] &&
+ | grep -c "tree 401bef82cd9fb403aba18f480a63844416a2e023") = 1 ] &&
[ $(git cat-file -p $(stg id change-1) \
[ $(git cat-file -p $(stg id change-1) \
- | grep -c "author Inge Ström <inge@power.com>") == 1 ] &&
+ | grep -c "author Inge Ström <inge@power.com>") = 1 ] &&
[ $(git cat-file -p $(stg id change-2) \
[ $(git cat-file -p $(stg id change-2) \
- | grep -c "tree e49dbce010ec7f441015a8c64bce0b99108af4cc") == 1 ] &&
+ | grep -c "tree e49dbce010ec7f441015a8c64bce0b99108af4cc") = 1 ] &&
[ $(git cat-file -p $(stg id change-2) \
[ $(git cat-file -p $(stg id change-2) \
- | grep -c "author Inge Ström <inge@power.com>") == 1 ] &&
+ | grep -c "author Inge Ström <inge@power.com>") = 1 ] &&
[ $(git cat-file -p $(stg id change-3) \
[ $(git cat-file -p $(stg id change-3) \
- | grep -c "tree 166bbaf27a44aee21ba78c98822a741e6f7d78f5") == 1 ] &&
+ | grep -c "tree 166bbaf27a44aee21ba78c98822a741e6f7d78f5") = 1 ] &&
[ $(git cat-file -p $(stg id change-3) \
[ $(git cat-file -p $(stg id change-3) \
- | grep -c "author Inge Ström <inge@power.com>") == 1 ] &&
+ | grep -c "author Inge Ström <inge@power.com>") = 1 ] &&
stg pop -a &&
stg import -M mbox0 &&
t2=$(git cat-file -p $(stg id) | grep ^tree) &&
stg pop -a &&
stg import -M mbox0 &&
t2=$(git cat-file -p $(stg id) | grep ^tree) &&
'
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"
'
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"
'
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"
'
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"