summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lib/common.inc3
-rwxr-xr-xtest/test.d/db-update.sh7
2 files changed, 5 insertions, 5 deletions
diff --git a/test/lib/common.inc b/test/lib/common.inc
index 554fb9a..4f5a5b4 100644
--- a/test/lib/common.inc
+++ b/test/lib/common.inc
@@ -138,7 +138,8 @@ releasePackage() {
local pkgname
pushd "${TMP}/svn-packages-copy"/${pkgbase}/trunk/ >/dev/null
- archrelease ${repo}-${arch} >/dev/null 2>&1
+ ~/git/arch/devtools/archrelease ${repo}-${arch} >/dev/null 2>&1
+ # TODO: pull archrelease and commitpkg in dbscripts so this can be done cleaner?
pkgver=$(. PKGBUILD; echo $(get_full_version ${epoch:-0} ${pkgver} ${pkgrel}))
pkgname=($(. PKGBUILD; echo ${pkgname[@]}))
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
}