diff options
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 |