Correct exclusions, include repo, exclude caches

This commit is contained in:
Eric Renfro 2024-08-07 22:25:08 -04:00
parent 8d23244e75
commit 2a9ff94ab4
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM
2 changed files with 5 additions and 5 deletions

View file

@ -185,8 +185,8 @@ tarExcludes=(
)
tarExcludesPortage=(
"var/db/repos/*/*"
"var/cache/binpkgs/*"
"var/cache/distiles/*"
"usr/portage/*"
)

View file

@ -3,9 +3,9 @@
load test_helper
setup() {
f test/var/db/repos/gentoo/app-backup/mkstage4/ebuild
f test/var/db/repos/gentoo/app-backup/gen2stage4/ebuild
f test/var/db/repos/science/sci-biology/fsl/ebuild
f test/var/cache/distfiles/mkstage4.tar.gz
f test/var/cache/distfiles/gen2stage4.tar.gz
f test/usr/portage/Manifest
gen2stage4 -q -t test test
}
@ -30,8 +30,8 @@ teardown() {
assert_tar_excludes_partial test/var/db/repos/gentoo/app-backup
}
@test "/var/cache/distfiles/mkstage4.tar.gz is excluded" {
assert_tar_excludes test/var/cache/distfiles/mkstage4.tar.gz
@test "/var/cache/distfiles/gen2stage4.tar.gz is excluded" {
assert_tar_excludes test/var/cache/distfiles/gen2stage4.tar.gz
}
@test "/var/cache/distfiles/ is included" {