@matheusbsbs / matheus-bagliano / commits / 91e80b984e
Fork 0

tests: fix "export var=val"

Some shells do not like "export var=val"; the right way to write it is to do an assignment and then export just the variable name. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Feb 18, 2009 at 11:17 UTC 91e80b984e0afda37d288e550fb5832d2b71568c
2 files changed +3 -3
t/t9301-fast-export.sh
+2 -2
@@ -185,8 +185,8 @@ test_expect_success 'submodule fast-export | fast-import' '
185
186 '
187
188 -export GIT_AUTHOR_NAME='A U Thor'
189 -export GIT_COMMITTER_NAME='C O Mitter'
188 +GIT_AUTHOR_NAME='A U Thor'; export GIT_AUTHOR_NAME
189 +GIT_COMMITTER_NAME='C O Mitter'; export GIT_COMMITTER_NAME
190
191 test_expect_success 'setup copies' '
192
t/test-lib.sh
+1 -1
@@ -82,7 +82,7 @@ do
82 -i|--i|--im|--imm|--imme|--immed|--immedi|--immedia|--immediat|--immediate)
83 immediate=t; shift ;;
84 -l|--l|--lo|--lon|--long|--long-|--long-t|--long-te|--long-tes|--long-test|--long-tests)
85 - export GIT_TEST_LONG=t; shift ;;
85 + GIT_TEST_LONG=t; export GIT_TEST_LONG; shift ;;
86 -h|--h|--he|--hel|--help)
87 help=t; shift ;;
88 -v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)