diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2017-02-15 14:24:30 +0100 |
---|---|---|
committer | Maryam Tahhan <maryam.tahhan@intel.com> | 2017-02-16 11:00:23 +0000 |
commit | 47ccd41d789085a2186fc1fb86364d93a20783ef (patch) | |
tree | e7405d83b55f8c402d92a0d76bd198072285f460 /baro_tests | |
parent | 5392cb0ef18e9fd6178006697f48cb1ad3ea6d5e (diff) |
Create baro_tests module
This module will be installed in functest so that
we can do things like
from baro_tests import collectd
result = collectd.main()
This way, we can avoid running bash commands in python to
call other python scripts.
Change-Id: Id3801a30648668ac2f1885cd298b920586584a18
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'baro_tests')
-rw-r--r-- | baro_tests/__init__.py | 0 | ||||
-rw-r--r-- | baro_tests/collectd.py | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/baro_tests/__init__.py b/baro_tests/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/baro_tests/__init__.py diff --git a/baro_tests/collectd.py b/baro_tests/collectd.py new file mode 100644 index 00000000..5631cf55 --- /dev/null +++ b/baro_tests/collectd.py @@ -0,0 +1,15 @@ +#!/usr/bin/python + +import sys + + +def main(logger): + logger.info("Running Baromtercollectd test suite...") + # + # TODO: implementation + # + logger.info("Test suite successfully completed.") + return 0 + +if __name__ == '__main__': + sys.exit(main()) |