Skip to content

Commit

Permalink
tests: test_installroot_with_etc() broken on other machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
akozumpl committed Feb 25, 2013
1 parent f0b18e3 commit d47908d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ def test_installroot_with_etc(self, read_conf_file):
"""Test that conffile is detected in a new installroot."""
self.cli.base.basecmd = 'update'

self.cli.configure(['--installroot', base.dnf_toplevel(), 'update'])
tlv = base.dnf_toplevel()
self.cli.configure(['--installroot', tlv, 'update'])
read_conf_file.assert_called_with(
'/home/akozumpl/dnf/etc/dnf/dnf.conf', '/home/akozumpl/dnf', None,
{'conffile': '/home/akozumpl/dnf/etc/dnf/dnf.conf',
'installroot': '/home/akozumpl/dnf'})
'%s/etc/dnf/dnf.conf' % tlv, tlv, None,
{'conffile': '%s/etc/dnf/dnf.conf' % tlv,
'installroot': tlv})

def test_installroot_configurable(self):
"""Test that conffile is detected in a new installroot."""
Expand Down

0 comments on commit d47908d

Please sign in to comment.