On Mon, Feb 20, 2012 at 03:21:54PM +0100, Iustin Pop wrote:
> This is not perfect, as the override applies identical target test
> values to both the 'fast' and 'slow' tests (making the slow tests take
> a long time), but it allows a quick override for manual runs.
> ---
>  htools/Ganeti/HTools/CLI.hs |   11 +++++++++++
>  htools/test.hs              |    7 +++++--
>  2 files changed, 16 insertions(+), 2 deletions(-)

Small interdiff to make things better (otherwise on incomplete tests we
end up too early):


diff --git a/htools/test.hs b/htools/test.hs
index ade0daa..fe77ca7 100644
--- a/htools/test.hs
+++ b/htools/test.hs
@@ -146,6 +146,7 @@ transformTestOpts args opts = do
   return args { chatty = optVerbose opts > 1
               , replay = r
               , maxSuccess = fromMaybe (maxSuccess args) (optTestCount opts)
+              , maxDiscard = fromMaybe (maxDiscard args) (optTestCount opts)
               }
 
 main :: IO ()

-- 
iustin

Reply via email to