Skip to content

Commit

Permalink
Attempt to work around travis-ci/travis-ci/issues/4778
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsomething committed Oct 12, 2015
1 parent ce91c2f commit a5ecaeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -10,4 +10,5 @@ install:
- pip install fabric
- pip install nose
script:
- sudo service docker restart; sleep 10
- nosetests -v
4 changes: 2 additions & 2 deletions tests/test_apt.py
Expand Up @@ -10,7 +10,7 @@


def docker(cmd):
return local("docker %s" % cmd, capture=False)
return local("docker %s" % cmd, capture=True)


class AptTest(unittest.TestCase):
Expand All @@ -37,7 +37,7 @@ def setUp(self):

def tearDown(self):
print('Destroying Docker container...')
return docker('kill %s' % self.container)
local('docker kill %s' % self.container)

def test_update(self):
with settings(host_string=self.container_host,
Expand Down

0 comments on commit a5ecaeb

Please sign in to comment.