t/setup: add test_config helper

This sets a Git configuration variable for the duration of the current
test.

Signed-off-by: John Keeping <john@keeping.me.uk>
t2000: new test for "integration.autorebuild"

Signed-off-by: John Keeping <john@keeping.me.uk>