diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-09-19 14:06:45 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-09-19 15:07:17 +0200 |
commit | a595cfbd47d6177a8144a98ac397cccb0c16a74b (patch) | |
tree | ffeb2b9aae8433e2f85639c59a5e04dc23764188 /debian/tests | |
parent | ae633f870923c829270d9a22fe991bd9d0f76a73 (diff) |
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 <christian.ehrhardt@canonical.com>
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/test-dkms | 4 |
1 files changed, 4 insertions, 0 deletions
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 |