[Dev] [dbscripts] [PATCH 29/31] Move package and db checks from test cases to library

Luke Shumaker lukeshu at lukeshu.com
Wed Apr 11 05:41:26 GMT 2018


On Fri, 06 Apr 2018 14:44:02 -0400,
Luke Shumaker wrote:
> diff --git a/test/cases/ftpdir-cleanup.bats b/test/cases/ftpdir-cleanup.bats
> index 1a46fdf..35b3c9f 100755
> --- a/test/cases/ftpdir-cleanup.bats
> +++ b/test/cases/ftpdir-cleanup.bats
> @@ -1,13 +1,21 @@
>  load ../lib/common
>  
> +__getPackageNamesFromPackageBase() {
> +	local pkgbase=$1
> +
> +	(. "packages/${pkgbase}/PKGBUILD"; echo ${pkgname[@]})

That should be fixtures/, not packages/

-- 
Happy hacking,
~ Luke Shumaker



More information about the Dev mailing list