diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2014-06-18 12:07:09 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2018-04-08 16:16:54 -0400 |
commit | a852b2822620b6294e2efa411ff88a3b0afe1754 (patch) | |
tree | 1d422852ed4f31c3e1c769238141c53736b5444c | |
parent | 7134da63690e0798d498fd15a09786db42091bfd (diff) |
test/: Verify that db-update won't release duplicate packages in the same transaction
This is a leftover change from the patch that became 0432cff; v2 of that
patch broke db-functions:getpkgfiles, but the testsuite didn't catch it.
This patch adds a testcase that catches this type of breakage.
-rw-r--r-- | test/cases/db-update.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/cases/db-update.bats b/test/cases/db-update.bats index e7e4489..ec58458 100644 --- a/test/cases/db-update.bats +++ b/test/cases/db-update.bats @@ -97,6 +97,13 @@ load ../lib/common [ "$status" -ne 0 ] } +@test "update duplicate package fails" { + PKGEXT=.pkg.tar.xz releasePackage extra pkg-any-a + PKGEXT=.pkg.tar.gz releasePackage extra pkg-any-a + run db-update + [ "$status" -ne 0 ] +} + @test "update same any package to different repositories fails" { local arch |