From 874131deeecbd57ef2871ac065cf4dbe422bc266 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Sun, 4 Apr 2010 02:57:40 -0300
Subject: [PATCH 13/15] tests/stress: Make main() return instead of sys.exit()

The sys.exit() are leftovers from the previous code, make it tidy by changing
them to return statements.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 tests/stress/jiostress |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

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
-- 
1.6.2.2.646.gb214

