From eba3a7ed601fb0f8293bdfc6e61d34f5e3f9da41 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 6 Dec 2016 22:27:20 +0200 Subject: Fix compiler arg checking if ccache is used. --- run_unittests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run_unittests.py b/run_unittests.py index 36d899a90..21d029d66 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -334,6 +334,8 @@ class LinuxlikeTests(unittest.TestCase): self.init(testdir) cmds = self.get_meson_log_compiler_checks() for cmd in cmds: + if cmd[0] == 'ccache': + cmd = cmd[1:] # Verify that -I flags from the `args` kwarg are first # This is set in the '43 has function' test case self.assertEqual(cmd[2], '-I/tmp') -- cgit v1.2.3