service: some minor fix.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
service_unittest: fix ignore_status unittest.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
service: fix status parser .

status parser fix:
    * sys_v:
        Returns True if XXX is running.
        Returns False if XXX is stopped.
        Returns None if XXX is unrecognized.
    * systemd:
        Returns True if XXX.service is running.
        Returns False if XXX.service is stopped.
        Returns None if XXX.service is not loaded.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
client.shared.service: logging.debug() the CmdResult of a failed command

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
client.shared.base_packages: Better missing command messages

Let's clarify messages given to the user when a fundamental
system utility for the functionality being used is missing.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
autotest: Adds missing run helper for ssh_host run_async.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
client.shared: Move all memory related functions to utils_memory.py

Move all memory related functions from client/base_utils.py to
client/shared/utils_memory.py. Also update the scripts call the
memory related functions.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
client.base_sysinfo: Record /proc/buddyinfo before and after iteration

/proc/buddyinfo can help to analyse the fragement status in host. This
will help to analyse the failed reason for some memory related test.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
client.shared.utils_memory: Add four functions related with host memory status check

read_from_vmstat: Use for reading host memory status such as nr_mlock
read_from_smaps: Use for reading process status like AnonHugePages
get_buddy_info: Get the fragement status in host. Will helpful for
                the huge page related function to decide if there
                is enough space for the test.
read_from_numa_maps: Use for reading process numa status like the pages
                     use in each node and informations like this.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
setup.py: Fix document generation

Our setup file was refering to a non existing method, that was removed
in one of our refactorings. Let's get rid of it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
service: Add 'run' parameter to functions

So that we can use the service API to control
services in virtual machines.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
added tox and build directories to .gitignore

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
console_unittest: modified tests to pass under standard unittest module

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
client/client.shared: modified tests to pass under standard unittest module

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
added nose configuration for utils/unittest_suite_nose.py

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
added travis configuration for travis-ci.org service

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
Added tox for running isolated tests on python 2.4,2.5,2.6 and 2.7

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
added requirements.txt file for being used instead of external-deps

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
added a nosetests runner following the same approach of the default autotest unittest_suite.py options

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
utils.check_patch: Exclude .travis.yml from the list of checked files

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>