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 /SharedModules/Utils/atfutils.py | |
parent | 18445ae1a94366c955cc7626fb8ec749dedcf73e (diff) |
Removing all automation files from the repo
Diffstat (limited to 'SharedModules/Utils/atfutils.py')
-rw-r--r-- | SharedModules/Utils/atfutils.py | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/SharedModules/Utils/atfutils.py b/SharedModules/Utils/atfutils.py deleted file mode 100644 index 980c286..0000000 --- a/SharedModules/Utils/atfutils.py +++ /dev/null @@ -1,58 +0,0 @@ -"""atfutils module contains general purpose wrappers - -*) assert_success -*) assert_failure -*) print-stdout -*) print_stderr -*) set_active_volume -""" - -import re -import ssh -from atfglobals import GlobalObj - -def assert_success(**arguments): - """ - """ - if not arguments["exitstatus"]: - return 0 - else: - return 1 - -def assert_failure(**arguments): - """ - """ - if arguments["exitstatus"]: - return 0 - else: - return 1 - -def print_stdout(stdoutdata): - """ - """ - if not stdoutdata == None: - for data in stdoutdata: - print data - -def print_stderr(stderrdata): - if not stderrdata == None: - for data in stderrdata: - print data - -def set_active_volume(volumekey): - """ - """ - env = GlobalObj.getTestenvObj() - return_status = env.setActiveVolume(volumekey) - if return_status: - print "Unable to set Active Volume. '%s' Not defined in TestEnvironment"\ - % volumekey - return return_status - - - -__all__ = ['assert_success', - 'assert_failure', - 'print-stdout', - 'print_stderr', - 'set_active_volume'] |