From bf1447c8d7a6e732eb90feb28a0289daa1d17e1c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 18 Jul 2019 00:47:31 +0100 Subject: test suite: splitbrain: "bad b/p" prints more info Signed-off-by: Ian Jackson --- tests/lib | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/lib b/tests/lib index bb7f04e..c470224 100644 --- a/tests/lib +++ b/tests/lib @@ -777,11 +777,12 @@ t-splitbrain-pushed-good-start () { t-refs-same-start t-ref-same refs/heads/split.p - case "$(t-git-get-ref refs/heads/split.b)" in + local split_b=$(t-git-get-ref refs/heads/split.b) + case "$split_b" in "$t_ref_val") ;; "$(git rev-parse refs/heads/split.p^0)") ;; "$(git rev-parse refs/heads/split.p^1)") ;; - *) fail 'bad b/p' ;; + *) fail "bad b/p (b=$split_b)" ;; esac t-pushed-good-core -- cgit v1.2.3