Loading isis/scripts/makeTruth.py +25 −8 Original line number Diff line number Diff line Loading @@ -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" Loading @@ -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) Loading
isis/scripts/makeTruth.py +25 −8 Original line number Diff line number Diff line Loading @@ -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" Loading @@ -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)