mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	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:
		@@ -22,10 +22,7 @@ exeNameParser = re.compile(r'\b(CatchSelfTest|SelfTest)\b')
 | 
				
			|||||||
if len(sys.argv) == 2:
 | 
					if len(sys.argv) == 2:
 | 
				
			||||||
    cmdPath = sys.argv[1]
 | 
					    cmdPath = sys.argv[1]
 | 
				
			||||||
else:
 | 
					else:
 | 
				
			||||||
    cmdPath = scriptCommon.getBuildExecutable()
 | 
					    cmdPath = os.path.join(catchPath, scriptCommon.getBuildExecutable())
 | 
				
			||||||
 | 
					 | 
				
			||||||
if not cmdPath.startswith("/"):
 | 
					 | 
				
			||||||
    cmdPath = os.path.join(catchPath, cmdPath)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
overallResult = 0
 | 
					overallResult = 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user