diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-07-28 11:07:32 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-08-16 16:21:51 -0700 |
commit | 7daed5faf8a7a0543c45c90a2e07b568a30a9ecf (patch) | |
tree | 45b95a1cf7a0d0190f1c152ec6ebd40ac28556ee /unittests/baseplatformtests.py | |
parent | aa68440ba6423250651da90e4ed6012e20e579e4 (diff) | |
download | meson-7daed5faf8a7a0543c45c90a2e07b568a30a9ecf.zip meson-7daed5faf8a7a0543c45c90a2e07b568a30a9ecf.tar.gz meson-7daed5faf8a7a0543c45c90a2e07b568a30a9ecf.tar.bz2 |
unittests/baseplatform: don't double print on error
Diffstat (limited to 'unittests/baseplatformtests.py')
-rw-r--r-- | unittests/baseplatformtests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py index 7a3830e..e347303 100644 --- a/unittests/baseplatformtests.py +++ b/unittests/baseplatformtests.py @@ -186,8 +186,10 @@ class BasePlatformTests(TestCase): print('Stderr:\n') print(err) raise RuntimeError('Configure failed') - except Exception: - self._print_meson_log() + except Exception as e: + # Don't double print + if str(e) != 'Configure failed': + self._print_meson_log() raise finally: # Close log file to satisfy Windows file locking |