[Patchew-devel] [PATCH 02/10] cli: Default -N of tester command to -1

Fam Zheng famz at redhat.com
Thu Jul 26 01:47:17 UTC 2018


This is a more appropriate value for "run forever", because 0 could
result in an unexpected early return in the loop when there is no test
to run.

Signed-off-by: Fam Zheng <famz at redhat.com>
---
 patchew-cli | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchew-cli b/patchew-cli
index 174d1e6..f4539a7 100755
--- a/patchew-cli
+++ b/patchew-cli
@@ -452,7 +452,7 @@ class TesterCommand(SubCommand):
                             help="comma separated project names to run test")
         parser.add_argument("--name", "-n",
                             help="name of this tester (default is the logged in username)")
-        parser.add_argument("--num", "-N", type=int, default=0,
+        parser.add_argument("--num", "-N", type=int, default=-1,
                             help="max number of tests to run")
         parser.add_argument("--no-clean-up", action="store_true",
                             help="skip cleaning up after finish")
-- 
2.17.1




More information about the Patchew-devel mailing list