debian-forge/test
Tomáš Hozza 200c2b0129 stages/copy: add option to remove destination before copying
Extend the copy stage to optionally allow removing the destination
before copying. This allows one to not follow symlinks if the
destination is a symlink to a file. By default, `cp` would change
the file pointed to by the destination if it is symlink.

Extend the stage doc text to cover the behavior with regard to
destination being a symlink.

Add unit tests for the copy stage to also test the newly added option.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-02-20 10:31:06 +01:00
..
cases test/ostree-image: +fedora-ostree-native-container 2022-12-15 11:13:19 +01:00
data stages/copy: add option to remove destination before copying 2023-02-20 10:31:06 +01:00
mod test/objectstore: use os.stat instead Path.stat 2022-12-28 11:35:37 +01:00
run mounts: accept more mount options 2023-02-01 12:29:58 +01:00
src test/src: improve file enumeration 2022-09-23 12:08:10 +02:00
.gitignore introduce testing script 2019-07-09 10:29:48 +02:00
__init__.py osbuild: add description() methods 2019-08-07 10:01:17 +02:00
initrd.py test: explicit encodings for open() 2022-09-09 15:33:29 +02:00
test.py osbuid: integrate FsCache into ObjectStore 2022-12-09 12:03:40 +01:00