[Bug 1794488] Re: Reuse unpacked src tree when running autopkgtests

Paul Gevers 1794488 at bugs.launchpad.net
Wed Sep 26 20:46:43 UTC 2018


Please be aware that ADT_TEST_TRIGGERS isn't set in Debian and that
ADTTMP and ADT_ARTIFACTS are the old (deprecated) names for
AUTOPKGTEST_ARTIFACTS and AUTOPKGTEST_TMP.

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

Title:
  Reuse unpacked src tree when running autopkgtests

Status in autopkgtest package in Ubuntu:
  New

Bug description:
  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

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



More information about the foundations-bugs mailing list