Skip to content

Commit

Permalink
Update test_clang_format.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMansolino authored May 16, 2019
1 parent 54628fc commit a6bd2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sources/test_clang_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def setUp(self):
def _runClangFormat(self, f):
"""Run clang format on 'f' file."""
clangFormatCommand = "clang-format"
if 'TRAVIS' in os.environ:
if 'TRAVIS' in os.environ and 'TRAVIS_OS_NAME' in os.environ and os.environ['TRAVIS_OS_NAME'] == 'linux':
clangFormatCommand = "clang-format-5.0"
return subprocess.check_output([clangFormatCommand, "-style=file", f])

Expand Down

0 comments on commit a6bd2c3

Please sign in to comment.