Test fix

Created by: mira13

Description

Test script exit with error status only when variable has_errors() is set. But this variable is not set if we have only parse_errors, that causes the problem: even tests fail, travis still makes it pass.

Use case

You can see this case if search in current ensembl test results for "Result: FAIL", you will find it in every passed travis builds)

Benefits

We will have correct travis test system

Possible Drawbacks

After code applied, our tests will all fail. I'm going to fix all errors we have just next to this pr. This pr is needed before tests are fixed, to make sure it detects parse tests fails.

I can't correctly test it until changes are in master branch of ensembl-test, as ensembl use this branch for tests.

Testing

I have run all local tests, but i can't run travis localy. So partly tested.

Merge request reports

Loading