Skip to content

Commit 91e80b9

Browse files
committed
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 <[email protected]>
1 parent d61027b commit 91e80b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

t/t9301-fast-export.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ test_expect_success 'submodule fast-export | fast-import' '
185185
186186
'
187187

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
190190

191191
test_expect_success 'setup copies' '
192192

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ do
8282
-i|--i|--im|--imm|--imme|--immed|--immedi|--immedia|--immediat|--immediate)
8383
immediate=t; shift ;;
8484
-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 ;;
8686
-h|--h|--he|--hel|--help)
8787
help=t; shift ;;
8888
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)

0 commit comments

Comments
 (0)