Commits

Robert Brewer committed 5b39b75

Benchmark: fix for no ab in bash.

Comments (0)

Files changed (1)

cherrypy/test/benchmark.py

     if (# Windows
         output.startswith("'%s' is not recognized" % cmd)
         # bash
-        or re.match(r"bash: .*: No such file", output)
+        or re.match(r"bash: .*: (No such file|command not found)", output)
         ):
         raise IOError('%s must be on your system path.' % cmd)
     pipeout.close()
             if val:
                 val = val.group(1)
                 setattr(self, attr, val)
+            else:
+                setattr(self, attr, None)
 
 
 safe_threads = (25, 50, 100, 200, 400)