Skip to content

Commit

Permalink
Merge pull request #318 from gtri/test-abs-path
Browse files Browse the repository at this point in the history
Find abs path to root dir before cpplint/cppcheck tests
  • Loading branch information
SyllogismRXS committed May 21, 2019
2 parents 30a3dce + 0347384 commit 15a7306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_cppcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def test_cppcheck():
"""Code static analysis using cppcheck."""
root_dir = os.path.join(os.path.dirname(__file__), '..')
root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
dirs = [os.path.join(root_dir, d)
for d in ['include', 'share', 'src', 'tools', 'plugins']]
enabled_checks = \
Expand Down
2 changes: 1 addition & 1 deletion test/test_cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def test_cpplint():
"""Code style analysis using cpplint."""
scrimmage_root = os.path.join(os.path.dirname(__file__), '..')
scrimmage_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
dirs = [os.path.join(scrimmage_root, d)
for d in ['include', 'share', 'src', 'tools', 'plugins']]

Expand Down

0 comments on commit 15a7306

Please sign in to comment.