Need a way to copy files to the test bed so they are cleaned up at the end of the run
Bug #1461577 reported by
Brendan Donegan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
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.
Changed in autopkgtest (Ubuntu): | |
assignee: | Martin Pitt (pitti) → nobody |
To post a comment you must log in.
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.