From cebbaa656bbae4e564f03df39c9e98898939d4e2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Sep 2014 11:46:02 +0530 Subject: [PATCH] ... --- src/calibre/test_build.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/calibre/test_build.py b/src/calibre/test_build.py index faec9cdd6a..ad8f56b346 100644 --- a/src/calibre/test_build.py +++ b/src/calibre/test_build.py @@ -55,11 +55,15 @@ def test_html5lib(): print ('html5lib OK!') def test_plugins(): + bad = [] for name in plugins: mod, err = plugins[name] if err or not mod: - raise RuntimeError('Plugin %s failed to load with error: %s' % - (name, err)) + bad.append((name, err)) + if bad: + for name, err in bad: + print ('Failed to load plugin:', name, 'with error:\n', err) + raise SystemExit(1) print ('Loaded all plugins successfully!') def test_lxml():