A bug fix for the cylc-submit tests.
Merge pull request #1210 from hjoliver/tests.bug-fix

A bug fix for the cylc-submit tests.
Merge branch 'master' into refactor-task-proxy
Remove unnecessary logic