[arch-projects] [dbscripts] [PATCH v2] test: Fix typoed variables
Luke Shumaker
lukeshu at lukeshu.com
Sat Jun 16 05:28:15 UTC 2018
From: Luke Shumaker <lukeshu at parabola.nu>
- ftpdir-cleanup: ${pkg[0]} -> ${pkgs[0]}
This mistake was introduced in 7628525156110022fa70ad91e4bc13ee8a3cceb0
- test: common.bash: $pkgarches[@] -> ${pkgarches[@]}
This mistake was introduced in 7628525156110022fa70ad91e4bc13ee8a3cceb0
---
Per Eli's request, I've squashed 2 previously separate commits
together to form this.
test/cases/ftpdir-cleanup.bats | 2 +-
test/lib/common.bash | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/cases/ftpdir-cleanup.bats b/test/cases/ftpdir-cleanup.bats
index 8c713c6..74215d0 100644
--- a/test/cases/ftpdir-cleanup.bats
+++ b/test/cases/ftpdir-cleanup.bats
@@ -111,7 +111,7 @@ __checkRepoRemovedPackage() {
ftpdir-cleanup
for arch in ${arches[@]}; do
- __checkRepoRemovedPackage extra ${pkg[0]} ${arch}
+ __checkRepoRemovedPackage extra ${pkgs[0]} ${arch}
done
checkRemovedPackage extra ${pkgs[0]}
diff --git a/test/lib/common.bash b/test/lib/common.bash
index 36c735f..b82643e 100644
--- a/test/lib/common.bash
+++ b/test/lib/common.bash
@@ -273,7 +273,7 @@ checkRemovedPackageDB() {
if [[ ${pkgarches[@]} == any ]]; then
tarches=(${ARCHES[@]})
else
- tarches=($pkgarches[@])
+ tarches=(${pkgarches[@]})
fi
for db in ${DBEXT} ${FILESEXT}; do
--
2.17.1
More information about the arch-projects
mailing list