hint_tester: accept all hints

For those hints which don't cause an immediate run (i.e. other than
easy, hint and force-hint), re-build the excuses after adding the
hint so that the actions are accounted for in later hints.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
debian
Adam D. Barratt 12 years ago
parent 8b09f949b6
commit 07918e2164

@ -2533,6 +2533,11 @@ class Britney(object):
# quit the hint tester # quit the hint tester
if input and input[0] in ('quit', 'exit'): if input and input[0] in ('quit', 'exit'):
break break
elif input and input[0] in ('remove', 'approve', 'urgent', 'age-days',
'block', 'block-udeb', 'unblock', 'unblock-udeb',
'block-all', 'force'):
self.hints.add_hint(' '.join(input), 'hint-tester')
self.write_excuses()
# run a hint # run a hint
elif input and input[0] in ('easy', 'hint', 'force-hint'): elif input and input[0] in ('easy', 'hint', 'force-hint'):
try: try:

Loading…
Cancel
Save