Don't consider restart when the test action already finished
authorlurchi <lurchi@strangeplace.net>
Mon, 4 Sep 2017 07:17:45 +0000 (09:17 +0200)
committerlurchi <lurchi@strangeplace.net>
Mon, 4 Sep 2017 07:17:45 +0000 (09:17 +0200)
commit652198e93fb05d301e6a8873b0364692f7f47ce4
tree49a40563ac15c7498ecd4b3cf4d0dfa397ce6ba3
parent909c769cc09296f8abccf2a5ee6a6a687b4efc3a
Don't consider restart when the test action already finished

In the old scheduler implementation tasks with different priorities were
run in the same event loop iteration, in the new implementation this
cannot be guaranteed anymore, as it's driver-dependent.
For the FS tests this means that when adding both an 'abort' task and a
'restart' task (the latter with higher priority) the 'restart' task
didn't take effect with the old implementation but does with the new
implementation (and leads to an assertion failure).
Not scheduling the 'restart' task when the action (download/publish) has
already finished successfully solves this issue.
src/fs/test_fs_download_persistence.c
src/fs/test_fs_publish_persistence.c