[PATCH 0/3] tests: unsetting variables that influence the outcome
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 15, 2011, 06:49 UTC
- Message-ID
- <20110315064909.GA25738@elie>
Hi,
These patches were rotting in my tree so I thought I should try sending them out. Maybe they can be useful.
The theme: settings from the inherited environment like GIT_PAGER can break tests in undesirable ways. For example,
GIT_PAGER=more sh t5400-send-pack.sh -v -i
hangs.
Jonathan Nieder (3): tests: protect against GIT_ATTR_NOGLOBAL from environment tests: suppress global and system gitattributes tests: scrub environment of GIT_* variables
t/t0003-attributes.sh | 1 + t/test-lib.sh | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletions(-)