]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Fix regex in lettuce tests
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 29 Jan 2013 12:36:34 +0000 (13:36 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 29 Jan 2013 12:36:34 +0000 (13:36 +0100)
The old version with . didn't work well with the form
  wait … for MESSAGE not OTHER_MESSAGE
Since the whole "MESSAGE not OTHER_MESSAGE" was captured into the first
(.+). This broke several tests in around xfrin and possibly others.

Now the tests pass and reviewed on jabber.

tests/lettuce/features/terrain/steps.py

index f0fad4d5c6d0d6ac55e01f940dab1d1b477cfbf4..e470acff0b27d2b4b0d810c73dabd821eab3a11c 100644 (file)
@@ -30,7 +30,7 @@ def stop_a_named_process(step, process_name):
     """
     world.processes.stop_process(process_name)
 
-@step('wait (?:(\d+) times )?for (new )?(\w+) stderr message (.+)(?: not (.+))?')
+@step('wait (?:(\d+) times )?for (new )?(\w+) stderr message (\S+)(?: not (\S+))?')
 def wait_for_stderr_message(step, times, new, process_name, message, not_message):
     """
     Block until the given message is printed to the given process's stderr