Tests - Convert add.t to python

* Also added UUID_regex to basetest.utils, likely to be reused
This commit is contained in:
Renato Alves 2015-02-16 15:36:38 +00:00
parent 395b08385b
commit 32d837fb25
2 changed files with 66 additions and 60 deletions

View file

@ -43,6 +43,8 @@ TASKD_SKIP = os.environ.get("TASKD_SKIP", False)
# Environment flags to control use of PATH or in-tree binaries
USE_PATH = os.environ.get("USE_PATH", False)
UUID_regex = ("[0-9A-Fa-f]{8}-" + ("[0-9A-Fa-f]{4}-" * 3) + "[0-9A-Fa-f]{12}")
def binary_location(cmd):
"""If USE_PATH is set rely on PATH to look for task/taskd binaries.