@matheusbsbs / matheus-bagliano / commits / 2c7e134cfe
Fork 0

t/t5705-clone-2gb: change from skip_all=* to prereq skip

Change this test to skip test with test prerequisites, and to do setup work in tests. This improves the skipped statistics on platforms where the test isn't run. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Aug 11, 2010 at 19:04 UTC 2c7e134cfe6fa10665b2545d5f6e2fb5d160618e
1 file changed +9 -7
t/t5705-clone-2gb.sh
+9 -7
@@ -3,12 +3,14 @@
3 test_description='Test cloning a repository larger than 2 gigabyte'
4 . ./test-lib.sh
5
6 -test -z "$GIT_TEST_CLONE_2GB" &&
7 -skip_all="Skipping expensive 2GB clone test; enable it with GIT_TEST_CLONE_2GB=t" &&
8 -test_done &&
9 -exit
6 +if test -z "$GIT_TEST_CLONE_2GB"
7 +then
8 + say 'Skipping expensive 2GB clone test; enable it with GIT_TEST_CLONE_2GB=t'
9 +else
10 + test_set_prereq CLONE_2GB
11 +fi
12
11 -test_expect_success 'setup' '
13 +test_expect_success CLONE_2GB 'setup' '
14
15 git config pack.compression 0 &&
16 git config pack.depth 0 &&
@@ -36,13 +38,13 @@ test_expect_success 'setup' '
38
39 '
40
39 -test_expect_success 'clone - bare' '
41 +test_expect_success CLONE_2GB 'clone - bare' '
42
43 git clone --bare --no-hardlinks . clone-bare
44
45 '
46
45 -test_expect_success 'clone - with worktree, file:// protocol' '
47 +test_expect_success CLONE_2GB 'clone - with worktree, file:// protocol' '
48
49 git clone file://. clone-wt
50