diff options
author | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-01-08 03:38:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-08 03:38:45 +0000 |
commit | 0786fde30eba926b097617dea9ca4683ac2fa1b7 (patch) | |
tree | 83ed42b95ad339e14287059b5c18e9b18bbb4be2 /src/spdk/test/runtest.py | |
parent | 812ff6ca9fcd3e629e49d4328905f33eee8ca3f5 (diff) | |
parent | bf51c0e84ddf5d8abc59fefb49e39de5f874eab4 (diff) |
Merge "Add script files of test and spdk-ansible for SPDK"
Diffstat (limited to 'src/spdk/test/runtest.py')
-rw-r--r-- | src/spdk/test/runtest.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/spdk/test/runtest.py b/src/spdk/test/runtest.py new file mode 100644 index 0000000..8020e76 --- /dev/null +++ b/src/spdk/test/runtest.py @@ -0,0 +1,15 @@ +#! /usr/bin/env python + +import os +import sys + + +def run_test(test_path): + os.system(test_path) + + +if __name__ == "__main__": + py_file = sys.argv[0] + py_path = os.path.abspath(os.path.dirname(py_file)) + test_path = os.path.join(py_path, 'unittest.sh') + run_test(test_path) |