summaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-12-06 22:27:20 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-06 23:45:17 +0200
commiteba3a7ed601fb0f8293bdfc6e61d34f5e3f9da41 (patch)
tree2f6714155398bc1a517674b2b974ed84b2c1850a /run_unittests.py
parent2897b7d3b0322d052e9f933074c092fbfddd757e (diff)
downloadmeson-eba3a7ed601fb0f8293bdfc6e61d34f5e3f9da41.tar.gz
Fix compiler arg checking if ccache is used.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py2
1 files changed, 2 insertions, 0 deletions
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')