diff options
author | Shwetha-H-Panduranga <shwetha@gluster.com> | 2012-02-03 16:13:17 +0530 |
---|---|---|
committer | Shwetha-H-Panduranga <shwetha@gluster.com> | 2012-02-03 16:13:39 +0530 |
commit | 39329e86b7cc99a5d44e88f53ffc60ac46d2879b (patch) | |
tree | c99a303710a4b2c7da518678e550316264a0da06 /TestUnits/xlators/cluster/afr/basic/testunit.py | |
parent | 5388b3ab6ba7480223624554e42a157dbe7d4744 (diff) |
Modifying the testcases to reflect the changes made to the return value from the libraries
Change-Id: Ib2999fc304b307f1e3c84920b2604d88dddab51e
Signed-off-by: Shwetha-H-Panduranga <shwetha@gluster.com>
Diffstat (limited to 'TestUnits/xlators/cluster/afr/basic/testunit.py')
-rw-r--r-- | TestUnits/xlators/cluster/afr/basic/testunit.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/TestUnits/xlators/cluster/afr/basic/testunit.py b/TestUnits/xlators/cluster/afr/basic/testunit.py index 1f8e7d2..6bd1042 100644 --- a/TestUnits/xlators/cluster/afr/basic/testunit.py +++ b/TestUnits/xlators/cluster/afr/basic/testunit.py @@ -16,6 +16,8 @@ dir_path = os.path.dirname(filename) def initialize(): """ + * Parse the test environment configuration file + * SSH to all Servers/Clients specified in testenv file """ logger = GlobalObj.getLoggerObj() return_status = 1 @@ -25,19 +27,24 @@ def initialize(): if not (os.path.isfile(testenv_abspath)): logger.error("%s not found in %s" % (testenv_file, dir_path)) - if parser.parse_testenv_configfile(testenv_abspath): + return_status = parser.parse_testenv_configfile(testenv_abspath) + if return_status is not 0: return return_status - if managerutils.ssh_connect_allhosts(): + + return_status = managerutils.ssh_connect_allhosts() + if return_status is not 0: return return_status return 0 def setup(): """ + * Set Active Volume """ - return_status = 1 - if atfutils.set_active_volume("volume1"): + return_status = atfutils.set_active_volume("volume1") + if return_status is not 0: return return_status + return 0 def execute(): |