From: Hilko Bengen Date: Mon, 27 Dec 2021 00:17:16 +0000 (+0100) Subject: Fix golang bindtest and check-mli.sh for out-of-tree builds X-Git-Tag: archive/raspbian/1%1.52.2-5+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=73f847283739d290c43a4d17cd7b308c02de7576;p=libguestfs.git Fix golang bindtest and check-mli.sh for out-of-tree builds Gbp-Pq: Name Fix-golang-bindtest-and-check-mli.sh-for-out-of-tree-buil.patch --- diff --git a/check-mli.sh b/check-mli.sh index 8a931872..1b3da07a 100755 --- a/check-mli.sh +++ b/check-mli.sh @@ -22,7 +22,7 @@ exitcode=0 for f in $( - find -name '*.ml' | + find "$abs_srcdir" "$abs_builddir" -name '*.ml' | grep -v builder/templates | grep -v contrib/ | grep -v ocaml/examples/ | diff --git a/golang/run-bindtests b/golang/run-bindtests index e79bb07a..b62132bb 100755 --- a/golang/run-bindtests +++ b/golang/run-bindtests @@ -18,7 +18,6 @@ set -e -cd $srcdir/bindtests -$GOLANG run bindtests.go > bindtests.tmp -diff -u $srcdir/../../bindtests bindtests.tmp +( cd $srcdir/bindtests && $GOLANG run bindtests.go ) > bindtests.tmp +diff -u $srcdir/../bindtests bindtests.tmp rm bindtests.tmp