Right now test runner will always exit(0).
It's helpful to have zfs-tests.sh provide different
exit values depending on if everything passed or not.
We can then use common shell cmds to run tests until failure.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Alek Pinchuk <apinchuk@datto.com>
Closes #6285
#
# Copyright (c) 2012, 2015 by Delphix. All rights reserved.
+# Copyright (c) 2017 Datto Inc.
#
import ConfigParser
def summary(self):
if Result.total is 0:
- return
+ return 2
print '\nResults Summary'
for key in Result.runresults.keys():
float(Result.total)) * 100)
print 'Log directory:\t%s' % self.outputdir
+ if Result.runresults['FAIL'] > 0:
+ return 1
+ return 0
+
def verify_file(pathname):
"""
testrun.complete_outputdirs()
testrun.run(options)
- testrun.summary()
- exit(0)
+ exit(testrun.summary())
if __name__ == '__main__':