summaryrefslogtreecommitdiffstats
path: root/src/spdk/test/runtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/spdk/test/runtest.py')
-rw-r--r--src/spdk/test/runtest.py15
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)