commit | c3e4b0a6d1660e12d3933aaccd747b26ef68d40f | [log] [tgz] |
---|---|---|
author | ehlemur <ehlesmes@gmail.com> | Thu May 04 10:58:25 2017 |
committer | Karl Wiberg <kha@treskal.com> | Thu May 04 10:58:25 2017 |
tree | b6e266785e0e5dae111cc29b8f10845f92986f11 | |
parent | 1e816d0426d5e4eec8fdc240277751b1968c78c7 [diff] |
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.