diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-15 14:40:59 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-18 23:48:33 +0200 |
commit | b2112bc4f68fc30fd171cb21451e5e1baca7a364 (patch) | |
tree | 84a56c24b26d291373ad402eec63518f89e6386a /run_project_tests.py | |
parent | 10afec575b528f192f4856c36169f0473bbdf18a (diff) | |
download | meson-b2112bc4f68fc30fd171cb21451e5e1baca7a364.zip meson-b2112bc4f68fc30fd171cb21451e5e1baca7a364.tar.gz meson-b2112bc4f68fc30fd171cb21451e5e1baca7a364.tar.bz2 |
tests: Always enable the traceback in run_project_tests.py
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 9665f3e..2e9992a 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -233,6 +233,9 @@ class TestDef: self.do_not_set_opts = [] # type: T.List[str] self.stdout = [] # type: T.List[T.Dict[str, str]] + # Always print a stack trace for Meson exceptions + self.env['MESON_FORCE_BACKTRACE'] = '1' + def __repr__(self) -> str: return '<{}: {:<48} [{}: {}] -- {}>'.format(type(self).__name__, str(self.path), self.name, self.args, self.skip) @@ -619,7 +622,7 @@ def _run_test(test: TestDef, gen_args.extend(['--native-file', nativefile.as_posix()]) if crossfile.exists(): gen_args.extend(['--cross-file', crossfile.as_posix()]) - (returncode, stdo, stde) = run_configure(gen_args, env=test.env) + (returncode, stdo, stde) = run_configure(gen_args, env=test.env, catch_exception=True) try: logfile = Path(test_build_dir, 'meson-logs', 'meson-log.txt') mesonlog = logfile.open(errors='ignore', encoding='utf-8').read() |