# HG changeset patch # User Boris Feld <boris.feld@octobus.net> # Date 1544634977 0 # Wed Dec 12 17:16:17 2018 +0000 # Node ID d5c7e4a692d77831f992f679a71467aaa6cd2bfc # Parent c92ab4a6df85893895d74f35e7fd68246e022121 Add a scheduler test for bisect action with full test name It would currently fails in production as test name needs to be escaped as they are used as regex. diff --git a/tests/test-scheduler.t b/tests/test-scheduler.t --- a/tests/test-scheduler.t +++ b/tests/test-scheduler.t @@ -95,3 +95,32 @@ Scheduler should exit and the TASKS file should be now empty $ cat TASKS + +Test scheduler bisect task with full test name + + $ cat << EOF >> TASKS + > BISECT tip..tip~2 basic_commands.TimeTestSuite.time_manifest_all('mercurial-2018-08-01') + > EXIT + > EOF + + $ python $TESTDIR/../scheduler.py TASKS + Bisecting test script tip..tip~2 basic_commands.TimeTestSuite.time_manifest_all(mercurial-2018-08-01) + ================================================================================ + Got task 'BISECT' "tip..tip~2 basic_commands.TimeTestSuite.time_manifest_all('mercurial-2018-08-01')" + Bisecting ['*/scripts/scheduler-test-bisect-script-success', 'tip..tip~2', 'basic_commands.TimeTestSuite.time_manifest_all(mercurial-2018-08-01)'] (glob) + + + + Removed task "BISECT tip..tip~2 basic_commands.TimeTestSuite.time_manifest_all('mercurial-2018-08-01')" + ================================================================================ + ================================================================================ + Got task 'EXIT' None + + + + Removed task 'EXIT' + ================================================================================ + +Scheduler should exit and the TASKS file should be now empty + + $ cat TASKS