diff options
author | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-06 14:25:20 +0530 |
---|---|---|
committer | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-06 14:25:20 +0530 |
commit | 129e39fe6878f28ca203c690fab382b7289b334c (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /TestUnits/replicate/self_heal/Main.py | |
parent | 18445ae1a94366c955cc7626fb8ec749dedcf73e (diff) |
Removing all automation files from the repo
Diffstat (limited to 'TestUnits/replicate/self_heal/Main.py')
-rw-r--r-- | TestUnits/replicate/self_heal/Main.py | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/TestUnits/replicate/self_heal/Main.py b/TestUnits/replicate/self_heal/Main.py deleted file mode 100644 index 4e37265..0000000 --- a/TestUnits/replicate/self_heal/Main.py +++ /dev/null @@ -1,69 +0,0 @@ -"""Main module for the testunit. - -This module "main" function is called from atfexecute to execute the testunit. -""" -import parser -import atfutils -import glusterutils -import managerutils -import testcases - -def initialize(filename): - """ - """ - return_status = 1 - if parser.parse_testenv_configfile(filename): - return return_status - if managerutils.ssh_connect_allhosts(): - return return_status - - return 0 - -def setup(): - """ - """ - return_status = 1 - if atfutils.set_active_volume("volume1"): - return return_status - return 0 - -def execute(*testcaselist): - """ - """ - passedtestcases = 0 - failedtestcases = 0 - selectedtestcases = len(testcaselist) - - for testcase in testcaselist: - function_obj = getattr(testcases, testcase) - if function_obj: - print "Starting Test: ' %s '" % testcase - return_status = function_obj() - if return_status: - print "TestCase ' %s ' Failed" % testcase - failedtestcases += 1 - else: - print "TestCase ' %s ' Passed" % testcase - passedtestcases += 1 - print "Ending Test: ' %s '" % testcase - else: - print "TestCase %s not defined in 'testcases' module" % testcase - continue - - print "Selected %d : Passed %d, Failed %d" % (selectedtestcases, - passedtestcases, - failedtestcases) - -def cleanup(): - """ - """ - pass - -def main(testenvfile, *testcaselist): - """ - """ - initialize(testenvfile) - setup() - execute(*testcaselist) - cleanup() - return |