Commit 01e5b7b9 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

phantom_test.js: exit code 1 when some test failed

The 'make browser_unit' rule will thus fail in these cases.
parent 13c569cf
......@@ -19,6 +19,11 @@ page.open(curdir+"/test_Qunit.html", function() {
} catch(e) {
console.log(e);
}
// Some error ?
if (tap.indexOf("not ok") > -1)
phantom.exit(1);
phantom.exit();
}, 5000);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment