diff --git a/tools/lint/tests/test_lint.py b/tools/lint/tests/test_lint.py index e3e530f172ef5d6..9375e2f7560b460 100644 --- a/tools/lint/tests/test_lint.py +++ b/tools/lint/tests/test_lint.py @@ -390,7 +390,10 @@ def test_main_with_args(): sys.argv = ['./lint', 'a', 'b', 'c'] with _mock_lint('lint', return_value=True) as m: lint_mod.main(**vars(create_parser().parse_args())) - m.assert_called_once_with(repo_root, ['a', 'b', 'c'], "normal") + m.assert_called_once_with(repo_root, + [os.path.relpath(os.path.join(os.getcwd(), x), repo_root) + for x in ['a', 'b', 'c']], + "normal") finally: sys.argv = orig_argv