Commit 7755bc02 authored by Vincent Pelletier's avatar Vincent Pelletier

Update test runner error message.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2229 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 76aa3bda
...@@ -348,8 +348,8 @@ if __name__ == "__main__": ...@@ -348,8 +348,8 @@ if __name__ == "__main__":
# check arguments # check arguments
if bool(options.sender) ^ bool(options.recipient): if bool(options.sender) ^ bool(options.recipient):
sys.exit('Need a sender and recipients to mail report') sys.exit('Need a sender and recipients to mail report')
if not (options.unit or options.functional or options.zodb): if not (options.unit or options.functional or options.zodb or args):
sys.exit('Nothing to run, please set -f and/or -u flag') sys.exit('Nothing to run, please give one of -f, -u, -z')
mail_server = options.server or '127.0.0.1:25' mail_server = options.server or '127.0.0.1:25'
mail_server = mail_server.split(':') mail_server = mail_server.split(':')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment