fix(sharness): fix AUR_CONFIG generation for mkpkglists test

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-10 07:04:03 -08:00
parent 4f7aeafa8d
commit 0c57c53da1
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 3 additions and 2 deletions

View file

@ -67,6 +67,7 @@ sync-dbs = test
server = file://$(pwd)/remote/
[mkpkglists]
archivedir = $(pwd)/archive
packagesfile = packages.gz
packagesmetafile = packages-meta-v1.json.gz
packagesmetaextfile = packages-meta-ext-v1.json.gz

View file

@ -8,8 +8,8 @@ test_expect_success 'Test package list generation with no packages.' '
echo "DELETE FROM Packages;" | sqlite3 aur.db &&
echo "DELETE FROM PackageBases;" | sqlite3 aur.db &&
cover "$MKPKGLISTS" &&
test $(zcat packages.gz | wc -l) -eq 1 &&
test $(zcat pkgbase.gz | wc -l) -eq 1
test $(zcat packages.gz | wc -l) -eq 0 &&
test $(zcat pkgbase.gz | wc -l) -eq 0
'
test_expect_success 'Test package list generation.' '