]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
prscript: fix error message in non local test
authorEric Leblond <eric@regit.org>
Thu, 12 Mar 2015 17:01:03 +0000 (18:01 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 7 Apr 2015 09:03:53 +0000 (11:03 +0200)
Indicate to user that non local test needs a github user.

qa/prscript.py

index 626dafdf4a71f371ada38dbcd9f9a91a33aa9595..3fd3354d1b9e8ab7457abeca9fc8d38596dfd64b 100755 (executable)
@@ -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