summaryrefslogtreecommitdiff
path: root/functional/common
diff options
context:
space:
mode:
Diffstat (limited to 'functional/common')
-rw-r--r--functional/common/test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/functional/common/test.py b/functional/common/test.py
index c1bb0b10..464844fa 100644
--- a/functional/common/test.py
+++ b/functional/common/test.py
@@ -10,6 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
+import os
import re
import shlex
import subprocess
@@ -19,6 +20,11 @@ import six
from functional.common import exceptions
+COMMON_DIR = os.path.dirname(os.path.abspath(__file__))
+FUNCTIONAL_DIR = os.path.normpath(os.path.join(COMMON_DIR, '..'))
+ROOT_DIR = os.path.normpath(os.path.join(FUNCTIONAL_DIR, '..'))
+EXAMPLE_DIR = os.path.join(ROOT_DIR, 'examples')
+
def execute(cmd, action, flags='', params='', fail_ok=False,
merge_stderr=False):