aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-20 22:15:08 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-11-20 23:14:45 +0200
commit105ea1e597a6ec5e711d95ec6339597ef759c475 (patch)
tree394ad695ba2ec95d9b56edaf83149d8abe386070 /run_unittests.py
parent5d51bc79c7555e681a0c638da9528458257744ae (diff)
downloadmeson-105ea1e597a6ec5e711d95ec6339597ef759c475.zip
meson-105ea1e597a6ec5e711d95ec6339597ef759c475.tar.gz
meson-105ea1e597a6ec5e711d95ec6339597ef759c475.tar.bz2
Make the full test suite runnable with an external command.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index cdf2902..fe75074 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -41,7 +41,7 @@ from mesonbuild.dependencies import PkgConfigDependency, ExternalProgram
from run_tests import exe_suffix, get_fake_options, FakeEnvironment
from run_tests import get_builddir_target_args, get_backend_commands, Backend
-from run_tests import ensure_backend_detects_changes, run_configure
+from run_tests import ensure_backend_detects_changes, run_configure, meson_exe
from run_tests import should_run_linux_cross_tests
@@ -1588,6 +1588,9 @@ class FailureTests(BasePlatformTests):
Assert that running meson configure on the specified @contents raises
a error message matching regex @match.
'''
+ if meson_exe is not None:
+ # Because the exception happens in a different process.
+ raise unittest.SkipTest('Can not test assert raise tests with an external Meson command.')
if langs is None:
langs = []
with open(self.mbuild, 'w') as f: