Approval tests now uses path relative to cwd, not the catch folder.

This means that bash's autocompletion is actually helpful.
This commit is contained in:
Martin Hořeňovský 2017-01-19 22:08:51 +01:00
parent d38b9266e7
commit c4b5057094

View File

@ -22,10 +22,7 @@ exeNameParser = re.compile(r'\b(CatchSelfTest|SelfTest)\b')
if len(sys.argv) == 2:
cmdPath = sys.argv[1]
else:
cmdPath = scriptCommon.getBuildExecutable()
if not cmdPath.startswith("/"):
cmdPath = os.path.join(catchPath, cmdPath)
cmdPath = os.path.join(catchPath, scriptCommon.getBuildExecutable())
overallResult = 0