From a595cfbd47d6177a8144a98ac397cccb0c16a74b Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Mon, 19 Sep 2016 14:06:45 +0200 Subject: [PATCH 1/1] 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 --- debian/tests/test-dkms | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.16.6