~chad.smith/curtin/docs-proposed

« back to all changes in this revision

Viewing changes to tools/jenkins-runner

vmtests: add option to tar disk images after test run

vmtests may create a number of disk image files for use, these
are all sparse disks which report a size larger than the actual
space they occupy. In some cases someone copying files may
not be aware of the sparseness and expand the images instead.
Setting CURTIN_VMTEST_TAR_DISKS=1 will trigger vmtest to tar
sparsely the files and write out a .tar file in the same path.

This flag is disabled by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
pkeep=${CURTIN_VMTEST_KEEP_DATA_PASS:-logs,collect}
5
5
fkeep=${CURTIN_VMTEST_KEEP_DATA_FAIL:-logs,collect}
6
6
reuse=${CURTIN_VMTEST_REUSE_TOPDIR:-0}
 
7
export CURTIN_VMTEST_TAR_DISKS=${CURTIN_VMTEST_TAR_DISKS:-0}
7
8
export CURTIN_VMTEST_REUSE_TOPDIR=$reuse
8
9
export CURTIN_VMTEST_IMAGE_SYNC=${CURTIN_VMTEST_IMAGE_SYNC:-0}
9
10
export CURTIN_VMTEST_KEEP_DATA_PASS=$pkeep