summaryrefslogtreecommitdiff
path: root/test/test.d/db-repo-remove.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.d/db-repo-remove.sh')
-rwxr-xr-xtest/test.d/db-repo-remove.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/test.d/db-repo-remove.sh b/test/test.d/db-repo-remove.sh
index ce13280..fd69fa7 100755
--- a/test/test.d/db-repo-remove.sh
+++ b/test/test.d/db-repo-remove.sh
@@ -4,13 +4,12 @@ curdir=$(readlink -e "$(dirname "$0")")
. "${curdir}/../lib/common.inc"
testRemovePackages() {
- local arches=('i686' 'x86_64')
local pkgs=('pkg-simple-a' 'pkg-simple-b' 'pkg-simple-epoch')
local pkgbase
local arch
for pkgbase in "${pkgs[@]}"; do
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
releasePackage extra "${pkgbase}" "${arch}"
done
done
@@ -18,38 +17,37 @@ testRemovePackages() {
../db-update
for pkgbase in "${pkgs[@]}"; do
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
../db-repo-remove extra "${arch}" "${pkgbase}"
done
done
for pkgbase in "${pkgs[@]}"; do
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
checkRemovedPackageDB extra "${pkgbase}" "${arch}"
done
done
}
testRemoveMultiplePackages() {
- local arches=('i686' 'x86_64')
local pkgs=('pkg-simple-a' 'pkg-simple-b' 'pkg-simple-epoch')
local pkgbase
local arch
for pkgbase in "${pkgs[@]}"; do
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
releasePackage extra "${pkgbase}" "${arch}"
done
done
../db-update
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
../db-repo-remove extra "${arch}" "${pkgs[@]}"
done
for pkgbase in "${pkgs[@]}"; do
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
checkRemovedPackageDB extra "${pkgbase}" "${arch}"
done
done