Joseph Salisbury (jsalisbury) why did you move it from linux src to
autopkgtest src?

the unpacked src tree is there and it linux kernel source package that
needs fixing!

Specifically the code that is cloned from and executed by debian/tests/*
in the src:linux

** Also affects: linux (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: autopkgtest (Ubuntu)
       Status: New => Invalid

** Description changed:

+ src:linux ships broken debian/tests/* that do not use the unpacked
+ debian source tree and instead DDoS launchpad with git clone requests of
+ the identical kernel tree for no reason
+ 
+ -- original bug report --
+ 
  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
+     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

-- 
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/autopkgtest/+bug/1794488/+subscriptions

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

Reply via email to