Merge branch 'jk/test-lint-forbid-when-finished-in-subshell'
commit416e2b3d4bcc4ba4b6dc8fafa954fcfdec4fc72d
authorJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 19:30:17 +0000 (5 12:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 19:30:17 +0000 (5 12:30 -0700)
tree57dd829a7e11c82fd121e5f67d2ec54483b3493f
parentebb58652b2eb422d649b001465f2f5580914220a
parent0968f12a99c4ac784b6b7f858003662cfaae117f
Merge branch 'jk/test-lint-forbid-when-finished-in-subshell'

Because "test_when_finished" in our test framework queues the
clean-up tasks to be done in a shell variable, it should not be
used inside a subshell.  Add a mechanism to allow 'bash' to catch
such uses, and fix the ones that were found.

* jk/test-lint-forbid-when-finished-in-subshell:
  test-lib-functions: detect test_when_finished in subshell
  t7800: don't use test_config in a subshell
  test-lib-functions: support "test_config -C <dir> ..."
  t5801: don't use test_when_finished in a subshell
  t7610: don't use test_config in a subshell