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

Commit a356a07

Browse files
committed
Merge pull request #43 from frigg/color
Remove color=never
2 parents 5fad338 + 87b58dd commit a356a07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docker/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def list_files(self, path):
185185

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

190190
if not result.succeeded:
191191
if errors.FILE_NOT_FOUND_PREDICATE in result.err:

tests/test_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def test_quotation_mark_handling(self, mock_run):
8282
@mock.patch('re.search', lambda *x: None)
8383
def test_env_variables(self, mock_run):
8484
docker = Docker(env_variables={'CI': 1, 'FRIGG': 1})
85-
docker.run('ls')
85+
docker.run('ls', login=True)
8686
mock_run.assert_called_once_with(
87-
'docker exec -i -t {} bash --login -c \'cd ~/ && CI=1 FRIGG=1 ls\''.format(
87+
'docker exec -i {0} bash --login -c \'cd ~/ && CI=1 FRIGG=1 ls\''.format(
8888
docker.container_name
8989
),
9090
''

0 commit comments

Comments
 (0)