Skip to content

Commit

Permalink
Fix sqlite test on CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlexis committed Jan 6, 2017
1 parent 6bdb83e commit 192c92f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/test_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
'.molecule/ansible_inventory').get_hosts('sqlite')

debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']


def test_package(Package, SystemInfo):
p = None
if SystemInfo.distribution in debian_os:
p = Package('pdns-backend-sqlite3')
if SystemInfo.distribution in rhel_os:
p = Package('pdns-backend-sqlite')

def test_package(Package):
p = Package('pdns-backend-sqlite3')
assert p.is_installed


Expand Down

0 comments on commit 192c92f

Please sign in to comment.