diff options
Diffstat (limited to 'test/test.d/db-update.sh')
-rwxr-xr-x | test/test.d/db-update.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test.d/db-update.sh b/test/test.d/db-update.sh index fa07077..5cee647 100755 --- a/test/test.d/db-update.sh +++ b/test/test.d/db-update.sh @@ -153,12 +153,11 @@ testAddIncompleteSplitPackage() { # remove a split package to make db-update fail rm "${STAGING}"/extra/${pkgbase}1-* - ../db-update >/dev/null 2>&1 && fail "db-update should fail when a split package is missing!" + # TODO: should this really not add any packages but exit 0? check against new specs + ../db-update for arch in ${arches[@]}; do - ( [ -r "${FTP_BASE}/${repo}/os/${arch}/${repo}${DBEXT%.tar.*}" ] \ - && bsdtar -xf "${FTP_BASE}/${repo}/os/${arch}/${repo}${DBEXT%.tar.*}" -O | grep -q ${pkgbase}) \ - && fail "${pkgbase} should not be in ${repo}/os/${arch}/${repo}${DBEXT%.tar.*}" + checkRemovedPackage extra ${pkgbase} $arch done } |