@matheusbsbs / matheus-bagliano / commits / 2f27f8509e
Fork 0

fix t5403-post-checkout-hook.sh: built-in test in dash does not have "=="

Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Alex Riesen committed Oct 4, 2007 at 15:32 UTC 2f27f8509edfe55f267ce9207dc42c12d4809a84
1 file changed +4 -4
t/t5403-post-checkout-hook.sh
+4 -4
@@ -39,7 +39,7 @@ test_expect_success 'post-checkout receives the right arguments with HEAD unchan
39 old=$(awk "{print \$1}" clone1/.git/post-checkout.args) &&
40 new=$(awk "{print \$2}" clone1/.git/post-checkout.args) &&
41 flag=$(awk "{print \$3}" clone1/.git/post-checkout.args) &&
42 - test $old = $new -a $flag == 1
42 + test $old = $new -a $flag = 1
43 '
44
45 test_expect_success 'post-checkout runs as expected ' '
@@ -52,7 +52,7 @@ test_expect_success 'post-checkout args are correct with git checkout -b ' '
52 old=$(awk "{print \$1}" clone1/.git/post-checkout.args) &&
53 new=$(awk "{print \$2}" clone1/.git/post-checkout.args) &&
54 flag=$(awk "{print \$3}" clone1/.git/post-checkout.args) &&
55 - test $old = $new -a $flag == 1
55 + test $old = $new -a $flag = 1
56 '
57
58 test_expect_success 'post-checkout receives the right args with HEAD changed ' '
@@ -60,7 +60,7 @@ test_expect_success 'post-checkout receives the right args with HEAD changed ' '
60 old=$(awk "{print \$1}" clone2/.git/post-checkout.args) &&
61 new=$(awk "{print \$2}" clone2/.git/post-checkout.args) &&
62 flag=$(awk "{print \$3}" clone2/.git/post-checkout.args) &&
63 - test $old != $new -a $flag == 1
63 + test $old != $new -a $flag = 1
64 '
65
66 test_expect_success 'post-checkout receives the right args when not switching branches ' '
@@ -68,7 +68,7 @@ test_expect_success 'post-checkout receives the right args when not switching br
68 old=$(awk "{print \$1}" clone2/.git/post-checkout.args) &&
69 new=$(awk "{print \$2}" clone2/.git/post-checkout.args) &&
70 flag=$(awk "{print \$3}" clone2/.git/post-checkout.args) &&
71 - test $old == $new -a $flag == 0
71 + test $old = $new -a $flag = 0
72 '
73
74 test_done