From: Christian Ehrhardt Date: Mon, 19 Sep 2016 12:06:45 +0000 (+0200) Subject: retain dkms build as adt artifacts X-Git-Tag: debian/16.07-1~24 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F2953%2F1;p=deb_dpdk.git retain dkms build as adt artifacts In case the test is failing this allows to debug the case as the adt artifacts will include the dkms build logs. Change-Id: I26a68199428b28332adea2a83da23a647f7756da Signed-off-by: Christian Ehrhardt --- diff --git a/debian/tests/test-dkms b/debian/tests/test-dkms index ab3aca00..5db36af9 100644 --- a/debian/tests/test-dkms +++ b/debian/tests/test-dkms @@ -4,6 +4,10 @@ set -eu basedir=$(dirname "$0") . "${basedir}"/check-dpdk-supported-arch.sh +if [ -d /var/lib/dkms ]; then + (cd /var/lib/dkms; find -name "make.log" -print0 | xargs -0 tar c) > "$ADT_ARTIFACTS/dkms-make-logs.tar" +fi + # check that the dkms build fine (on dep install), load and unload printf "\n\nChecking igb_uio\n" modinfo igb_uio