[Bug 1794488] [NEW] Reuse unpacked src tree when running autopkgtests

Launchpad Bug Tracker 1794488 at bugs.launchpad.net
Wed Sep 26 20:04:51 UTC 2018


You have been subscribed to a public bug:

When running autopkgtests one is located at the top of the unpacked debian source tree.
There is no location given as to where that is, in an environment variable, but it is trivial to cache it.
Also, one is supposed to use AUTOPKGTEST_TMP directory for most of the disk space.
Currently linux ubuntu_kernel_selftests clones linux git tree, instead of using the locally unpacked tree instead.
Here is proposal to fix this.

In git clone git://kernel.ubuntu.com/ubuntu/kernel-testing
In run-dep8-tests

do something like this:
if [ -n "$AUTOPKGTEST_TMP" ]; then
    export ADT_LINUX_TREE=`pwd`
    cd $AUTOPKGTEST_TMP
fi

Then in git://kernel.ubuntu.com/ubuntu/autotest-client-tests,
ubuntu_kernel_selftests/ubuntu_kernel_selftests.py in the setup()
function add code to use ADT_LINUX_TREE if set in the envrionment,
similar to how ~/ubuntu/ubuntu-%s is used.

I'm not sure if symlink will do there, or if one needs to do `cp -a
$ADT_LINUX_TREE linux` or some such.

Alternatively, I guess debian/tests/ubuntu-regression-suite could
initialize a git repo out of PWD and clone it into ~/ubuntu/ubuntu-%s to
trick autotest-client-tests into using that later.


Environment variables set during autopkgtest run:

ADTTMP: /tmp/autopkgtest.RvYSiJ/autopkgtest_tmp
ADT_ARTIFACTS: /tmp/autopkgtest.RvYSiJ/run-installed-artifacts
ADT_TEST_TRIGGERS: glibc/2.28-0ubuntu1
AUTOPKGTEST_ARTIFACTS: /tmp/autopkgtest.RvYSiJ/run-installed-artifacts
AUTOPKGTEST_TMP: /tmp/autopkgtest.RvYSiJ/autopkgtest_tmp
HOME: /home/ubuntu
OLDPWD: /home/ubuntu
PWD: /tmp/autopkgtest.RvYSiJ/build.yTe/src

** Affects: autopkgtest (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Reuse unpacked src tree when running autopkgtests
https://bugs.launchpad.net/bugs/1794488
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.



More information about the foundations-bugs mailing list