retain dkms build as adt artifacts 53/2953/1
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 19 Sep 2016 12:06:45 +0000 (14:06 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 19 Sep 2016 13:07:17 +0000 (15:07 +0200)
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 <christian.ehrhardt@canonical.com>
debian/tests/test-dkms

index ab3aca0..5db36af 100644 (file)
@@ -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