From 07918e2164f0b301e948ba80ee904489e7f02bb5 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Sat, 16 Mar 2013 16:30:18 +0000 Subject: [PATCH] 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 --- britney.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/britney.py b/britney.py index 6007e6f..386b1ff 100755 --- a/britney.py +++ b/britney.py @@ -2533,6 +2533,11 @@ class Britney(object): # quit the hint tester if input and input[0] in ('quit', 'exit'): 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 elif input and input[0] in ('easy', 'hint', 'force-hint'): try: