Skip to content

Commit

Permalink
Merge pull request #1 from evalero/fix/debian-test
Browse files Browse the repository at this point in the history
Fixed tests for ubuntu
  • Loading branch information
Ernesto authored Mar 28, 2018
2 parents 90c3bed + 208c5ab commit 98a5f27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ platforms:
image: centos:7
- name: ubuntu-atom
image: ubuntu:xenial
- name: debian-atom
image: debian:stretch
provisioner:
name: ansible
lint:
Expand Down
6 changes: 5 additions & 1 deletion molecule/default/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@


def test_atom_installed(host):
f = host.file('/bin/atom')
if (str(host.system_info.distribution) == 'debian' or
str(host.system_info.distribution) == 'ubuntu'):
f = host.file('/usr/bin/atom')
else:
f = host.file('/bin/atom')
assert f.exists

0 comments on commit 98a5f27

Please sign in to comment.