Commit 80cd1451 authored by Cole Neubauer's avatar Cole Neubauer
Browse files

cool

parents b650fa67 0a2f2fbc
Loading
Loading
Loading
Loading
+25 −8
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@ output as Truth
import sys
import os

if not os.environ['ISISROOT']:
    print("The $ISISROOT variable is not set")
    return

if sys.argv[1].contains("_unit_"):
    unitTestExecutable = sys.argv[1]

    unitTestName = unitTestExecutable.split("_test_")[1] + ".truth"
@@ -16,4 +21,16 @@ unitTestPath = unitTestExecutable.split("/")
    del unitTestPath[-1]
    unitTestPath = "/".join(unitTestPath)

os.system(unitTestExecutable + ">&" + unitTestPath + "/" + unitTestName)
    os.system(unitTestExecutable + ">&" + unitTestPath + "/" unitTestName)

else:
    builddir = os.environ['ISISROOT']
    apptest = sys.arg[1]
    makefilePath = ""
    with open(builddir + "/objects/CTestTestfile.cmake") as testFile
        for line in testFile:
            if apptest in line:
                makefilePath = line.split("-P")[1][3:]
                break
    print(makefilePath)