[Bug 1461577] Re: Need a way to copy files to the test bed so they are cleaned up at the end of the run

Martin Pitt martin.pitt at ubuntu.com
Fri Jun 12 10:50:25 UTC 2015


Supposedly this file should also survive a reboot? So we need to put it
into the testbed's downtmp directory, which is saved/restored across
test-induced reboots. $ADT_ARTIFACTS would work, but we don't want these
files appear as artifacts as they could contain private bits like wlan
passwords.

$ADTTMP also does not work as that is per-test, and you want this to
survive across all tests of a package.

So I think we need a new $ADT_COPY_DIR which is <downtmp>/copy-dir/,
that has the requested lifecycle properties. $ADT_COPY_DIR needs to be
exported to tests, and calling --copy with a relative path (i. e. no dir
at all) should use this directory as cwd.

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

** Changed in: autopkgtest (Ubuntu)
   Importance: Undecided => Wishlist

** Changed in: autopkgtest (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

-- 
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/1461577

Title:
  Need a way to copy files to the test bed so they are cleaned up at the
  end of the run

Status in autopkgtest package in Ubuntu:
  Triaged

Bug description:
  In our project we want to copy a config file to the testbed so that it
  can be read in any test. Right now we put it in /tmp, but this is only
  cleaned up on reboot. The file should persist across all tests.

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



More information about the foundations-bugs mailing list