Fix global_exit_code. (#28)

There were two bugs in the code:

  * global_exit_code was always set to task.exit_code, so that if a passing task was executed after a failing task, global_exit_code was reset to 0.

  * If we are in the last iteration on the loop, and the task didn't succeed, we still create a new task. Then, we set global_exit_code to task.exit_code, which is None.
1 file changed
tree: b6e266785e0e5dae111cc29b8f10845f92986f11
  1. .gitignore
  2. gtest-parallel
  3. LICENSE