Pages

Friday 9 March 2012

Lettuce from jenkins

In order to see, that during the development that I deliver business values, I tried out bdd. Technically lettuce is driving mechanize, which is sending request to the deployed application. The whole stuff is controlled by Jenkins. Lettuce threw an error:


.../lettuce/terminal.py", line 82, in get_terminal_size_unix
    return int(cr[1]), int(cr[0])
TypeError: int() argument must be a string or a number, not 'NoneType'



It happened after Jenkins was started from init.d I performed the following patch:


--- lettuce-0.1.34-py2.6.egg/lettuce/terminal.py.orig 2012-03-08 17:47:21.959735489 +0000
+++ lettuce-0.1.34-py2.6.egg/lettuce/terminal.py 2012-03-08 17:48:23.649788786 +0000
@@ -79,4 +79,4 @@
         except:
             cr = (25, 80)


-    return int(cr[1]), int(cr[0])
+    return int(cr[1] or 25), int(cr[0] or 80)
Anyhow, it seems, that it has already been fixed:

No comments:

Post a Comment