aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-01-11 17:01:47 +0100
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-01-11 16:35:25 +0000
commitb1b74d7458a6b0ee71ba31f7bc0ca61af8fb51dd (patch)
tree1477bf03484a3c4efc954966e3732175ba182e86
parent9553328d81a46bb7f0c185661f07c68f0fff20df (diff)
Add apexlake package path
Workaround/hack to be able to use apexlake packages modules and run unit tests without having to install apexlake. Change-Id: Ibfa34f56bdb1cafa60d2090e16544a81badc2e85 Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> (cherry picked from commit 5da3bbf2eb241b4550b8397b767123698bc3432a)
-rw-r--r--yardstick/__init__.py7
-rw-r--r--yardstick/vTC/__init__.py0
2 files changed, 7 insertions, 0 deletions
diff --git a/yardstick/__init__.py b/yardstick/__init__.py
index 0c25416bd..7114f8008 100644
--- a/yardstick/__init__.py
+++ b/yardstick/__init__.py
@@ -16,3 +16,10 @@ logging.basicConfig(
'%(levelname)s %(message)s', # noqa
datefmt='%m/%d/%y %H:%M:%S')
logging.getLogger(__name__).setLevel(logging.INFO)
+
+# Hack to be able to run apexlake unit tests
+# without having to install apexlake.
+import sys
+import os
+import yardstick.vTC.apexlake as apexlake
+sys.path.append(os.path.dirname(apexlake.__file__))
diff --git a/yardstick/vTC/__init__.py b/yardstick/vTC/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/yardstick/vTC/__init__.py