File tree Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Copyright (c) 2007 Christian Couder
4
4
#
5
- test_description=' Tests git-bisect run functionality'
5
+ test_description=' Tests git-bisect functionality'
6
6
7
7
. ./test-lib.sh
8
8
@@ -37,6 +37,42 @@ test_expect_success \
37
37
HASH3=$(git rev-list HEAD | head -2 | tail -1) &&
38
38
HASH4=$(git rev-list HEAD | head -1)'
39
39
40
+ test_expect_success ' bisect does not start with only one bad' '
41
+ git bisect reset &&
42
+ git bisect start &&
43
+ git bisect bad $HASH4 || return 1
44
+
45
+ if git bisect next
46
+ then
47
+ echo Oops, should have failed.
48
+ false
49
+ else
50
+ :
51
+ fi
52
+ '
53
+
54
+ test_expect_success ' bisect does not start with only one good' '
55
+ git bisect reset &&
56
+ git bisect start &&
57
+ git bisect good $HASH1 || return 1
58
+
59
+ if git bisect next
60
+ then
61
+ echo Oops, should have failed.
62
+ false
63
+ else
64
+ :
65
+ fi
66
+ '
67
+
68
+ test_expect_success ' bisect start with one bad and good' '
69
+ git bisect reset &&
70
+ git bisect start &&
71
+ git bisect good $HASH1 &&
72
+ git bisect bad $HASH4 &&
73
+ git bisect next
74
+ '
75
+
40
76
# We want to automatically find the commit that
41
77
# introduced "Another" into hello.
42
78
test_expect_success \
You can’t perform that action at this time.
0 commit comments