aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Brunschwig <[email protected]>2021-05-02 17:29:24 +0200
committerPatrick Brunschwig <[email protected]>2021-05-02 17:29:24 +0200
commite981665e2f22bb36ea6e3cd371afff2679e50f8c (patch)
treeadb4164b9483f8f6bb564c23f20623e296bc72f3
parent4b3256e2c60423efc3f842d290f603ef1548aa59 (diff)
downloadenigmail-e981665e2f22bb36ea6e3cd371afff2679e50f8c.tar.gz
enigmail-e981665e2f22bb36ea6e3cd371afff2679e50f8c.tar.bz2
enigmail-e981665e2f22bb36ea6e3cd371afff2679e50f8c.zip
don't fail if a test does not complete
-rw-r--r--package/tests/main.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/tests/main.js b/package/tests/main.js
index 3e8d7233..66c1e440 100644
--- a/package/tests/main.js
+++ b/package/tests/main.js
@@ -16,8 +16,13 @@ function execTest(filename) {
if (testcases && testcases.length > 0) {
if (testcases.search(filename) >= 0) do_subtest(filename);
- } else
- do_subtest(filename);
+ }
+ else {
+ try {
+ do_subtest(filename);
+ }
+ catch (x) {}
+ }
}
execTest("initialize.js");