From ad66d3c05e68604c94f2649ccbd86581b3318bff Mon Sep 17 00:00:00 2001 From: Geoffrey Sneddon Date: Tue, 23 Jan 2018 23:42:08 +0000 Subject: [PATCH] Fix #9169: test_main_with_args in tools/lint has wrong expectation This got broken by 19c79185c1d4978aeb7191494541711ca4f3a582 --- tools/lint/tests/test_lint.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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