Public bug reported:

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: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1794488

Title:
  Reuse unpacked src tree when running autopkgtests

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1794488/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to