diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-10-14 15:59:26 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-10-14 15:59:26 +0200 |
| commit | d4f3df54c143b4d99dc06765208b62105f0cdca1 (patch) | |
| tree | 94e790d19393b93904547f227594f71eb54fbafc /src | |
| parent | 25670e8b03331d710b355ce6b15e2e7ecf1a354e (diff) | |
Possible fix for sporadic test failures where DCPs are checked before they are made.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/check_content_change_job.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/check_content_change_job.cc b/src/lib/check_content_change_job.cc index 0b52f414b..3d5e4e979 100644 --- a/src/lib/check_content_change_job.cc +++ b/src/lib/check_content_change_job.cc @@ -82,9 +82,6 @@ CheckContentChangeJob::run () JobManager::instance()->add(shared_ptr<Job>(new ExamineContentJob(_film, i))); } - set_progress (1); - set_state (FINISHED_OK); - if (!changed.empty()) { string m = _("Some files have been changed since they were added to the project.\n\nThese files will now be re-examined, so you may need to check their settings."); if (_following) { @@ -96,4 +93,12 @@ CheckContentChangeJob::run () } else if (_following) { JobManager::instance()->add (_following); } + + /* Only set this job as finished once we have added the following job, otherwise I think + it's possible that the tests will sporadically fail if they check for all jobs being + complete in the gap between this one finishing and _following being added. + */ + + set_progress (1); + set_state (FINISHED_OK); } |
