From: Eric Leblond Date: Thu, 12 Mar 2015 17:01:03 +0000 (+0100) Subject: prscript: fix error message in non local test X-Git-Tag: suricata-2.1beta4~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b64b992c96cbd8a4c7c35c4a09e7e666dd08895;p=thirdparty%2Fsuricata.git prscript: fix error message in non local test Indicate to user that non local test needs a github user. --- diff --git a/qa/prscript.py b/qa/prscript.py index 626dafdf4a..3fd3354d1b 100755 --- a/qa/prscript.py +++ b/qa/prscript.py @@ -71,6 +71,11 @@ username = args.username password = args.password cookie = None +if not args.local: + if not args.username: + print "You need to specify a github username (-u option) for this mode (or use -l to disable)" + sys.exit(-1) + if GOT_DOCKER: if args.create or args.start or args.stop: args.docker = True