Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #43 from frigg/color
Browse files Browse the repository at this point in the history
Remove color=never
  • Loading branch information
relekang committed Jan 28, 2016
2 parents 5fad338 + 87b58dd commit a356a07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def list_files(self, path):

# `grep -v /$` matches everything that doesn't end with a
# trailing slash, i.e. only files since `ls -p` is used:
result = self.run('ls -p | grep --color=never -v /$', path)
result = self.run('ls -p | grep -v /$', path)

if not result.succeeded:
if errors.FILE_NOT_FOUND_PREDICATE in result.err:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def test_quotation_mark_handling(self, mock_run):
@mock.patch('re.search', lambda *x: None)
def test_env_variables(self, mock_run):
docker = Docker(env_variables={'CI': 1, 'FRIGG': 1})
docker.run('ls')
docker.run('ls', login=True)
mock_run.assert_called_once_with(
'docker exec -i -t {} bash --login -c \'cd ~/ && CI=1 FRIGG=1 ls\''.format(
'docker exec -i {0} bash --login -c \'cd ~/ && CI=1 FRIGG=1 ls\''.format(
docker.container_name
),
''
Expand Down

0 comments on commit a356a07

Please sign in to comment.