author | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-04-04 05:57:40 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-04-04 05:57:40 UTC |
parent | 2b4c0f1a7cd964a2143a2d4455ea02f3ec427cf3 |
tests/stress/jiostress | +4 | -4 |
diff --git a/tests/stress/jiostress b/tests/stress/jiostress index 80c65fe..ad499fd 100755 --- a/tests/stress/jiostress +++ b/tests/stress/jiostress @@ -655,22 +655,22 @@ def main(): if len(args) != 2: parser.print_help() - sys.exit(1) + return 1 fname = args[0] try: fsize = int(args[1]) * 1024 * 1024 except ValueError: print("Error: the size of the file must be numeric") - sys.exit(1) + return 1 if options.use_fi and options.use_as: print("Error: --fi and --as cannot be used together") - sys.exit(1) + return 1 if options.use_fi and options.nproc > 1: print("Error: --fi cannot be used with multiple processes") - sys.exit(1) + return 1 if not options.use_internal_locks: options.do_verify = False