summaryrefslogtreecommitdiffstats
path: root/t/t0000-basic.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-10-19 06:34:03 +0200
committerJunio C Hamano <gitster@pobox.com>2018-10-19 06:34:03 +0200
commit340fde61bea189b87268aa20581e243deb744577 (patch)
tree90d4144aea9a2ee2d48a464e18aa3284e7029d7b /t/t0000-basic.sh
parentMerge branch 'ss/wt-status-committable' (diff)
parentt0000: do not get self-test disrupted by environment warnings (diff)
downloadgit-340fde61bea189b87268aa20581e243deb744577.tar.xz
git-340fde61bea189b87268aa20581e243deb744577.zip
Merge branch 'bp/rename-test-env-var'
Some environment variables that control the runtime options of Git used during tests are getting renamed for consistency. * bp/rename-test-env-var: t0000: do not get self-test disrupted by environment warnings preload-index: update GIT_FORCE_PRELOAD_TEST support read-cache: update TEST_GIT_INDEX_VERSION support fsmonitor: update GIT_TEST_FSMONITOR support preload-index: use git_env_bool() not getenv() for customization t/README: correct spelling of "uncommon"
Diffstat (limited to 't/t0000-basic.sh')
-rwxr-xr-xt/t0000-basic.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh
index 26601e698b..4d23373526 100755
--- a/t/t0000-basic.sh
+++ b/t/t0000-basic.sh
@@ -87,6 +87,10 @@ _run_sub_test_lib_test_common () {
passing metrics
'
+ # Tell the framework that we are self-testing to make sure
+ # it yields a stable result.
+ GIT_TEST_FRAMEWORK_SELFTEST=t &&
+
# Point to the t/test-lib.sh, which isn't in ../ as usual
. "\$TEST_DIRECTORY"/test-lib.sh
EOF