From 5f3ef76dded40c31a279376031f41474424015e7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 11 Nov 2022 23:21:59 +0000 Subject: tests: quilt-splitbrains: Test that we gen cache if needed Have tested that this fails before the previous fix. Signed-off-by: Ian Jackson --- tests/tests/quilt-splitbrains | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/tests/quilt-splitbrains b/tests/tests/quilt-splitbrains index 1940410..4c683c0 100755 --- a/tests/tests/quilt-splitbrains +++ b/tests/tests/quilt-splitbrains @@ -26,6 +26,8 @@ want-success () { t-dgit "$@" --quilt=$qmode --dgit-view-save=split.b build-source + $want_success_pre_push_hook + t-dgit "$@" --quilt=$qmode --dgit-view-save=split.p push-built t-$qmode-pushed-good $suite } @@ -77,7 +79,10 @@ t-dgit -wgf --quilt=gbp build-source t-expect-fail 'This might be a patches-unapplied branch' \ t-dgit -wgf build-source +# Check that push-built regenerates the cache if necessary +want_success_pre_push_hook='git update-ref -d refs/dgit-intern/quilt-cache' want-success unapplied -wgf +want_success_pre_push_hook='' echo "===== making fully-applied tree suitable for --quilt-check =====" -- cgit v1.2.3