Skip to content
Snippets Groups Projects
Commit db76ef54 authored by Daniel Brown's avatar Daniel Brown
Browse files

adding kat version check

parent 8b10254d
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,10 @@ class FinesseTestProcess(Thread): ...@@ -59,6 +59,10 @@ class FinesseTestProcess(Thread):
self.test_id = test_id self.test_id = test_id
self.TEST_DIR = TEST_DIR self.TEST_DIR = TEST_DIR
self.BASE_DIR = BASE_DIR self.BASE_DIR = BASE_DIR
if os.path.exists(self.BASE_DIR):
shutil.rmtree(self.BASE_DIR)
self.emails = "" self.emails = ""
if type(nobuild) is str: if type(nobuild) is str:
...@@ -167,6 +171,14 @@ class FinesseTestProcess(Thread): ...@@ -167,6 +171,14 @@ class FinesseTestProcess(Thread):
if not os.path.exists(FINESSE_EXE): if not os.path.exists(FINESSE_EXE):
raise Exception("Kat file was not found in " + FINESSE_EXE) raise Exception("Kat file was not found in " + FINESSE_EXE)
# check version numbers match up
out = utils.runcmd([FINESSE_EXE])
shortid = out[0].split("\n")[2].split("(build ")[-1].rstrip(")").split("-")[-1].lstrip("g")
if shortid != self.git_commit[0:len(shortid)]:
raise Exception("Version of kat did not match the version that it was requested to build. Not sure why...")
self.built = True self.built = True
print "kat file found in " + FINESSE_EXE print "kat file found in " + FINESSE_EXE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment