mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Exclude test name from approval tests
This commit is contained in:
		| @@ -19,6 +19,7 @@ durationsParser = re.compile(r'(.*)time="[0-9]*\.[0-9]*"(.*)') | ||||
| versionParser = re.compile(r'(.*?)Catch v[0-9]*\.[0-9]*\.[0-9]*(.*)') | ||||
| devVersionParser = re.compile(r'(.*?)Catch v[0-9]*\.[0-9]*\.[0-9]*-develop\.[0-9]*(.*)') | ||||
| nullParser = re.compile(r'(.*?)\b(__null|nullptr)\b(.*)') | ||||
| exeNameParser = re.compile(r'(.*?)\b(CatchSelfTest|SelfTest)\b(.*)') | ||||
|  | ||||
| if len(sys.argv) == 2: | ||||
|     cmdPath = sys.argv[1] | ||||
| @@ -59,6 +60,10 @@ def filterLine(line): | ||||
|     if m: | ||||
|         line = m.group(1) + "0" + m.group(3) | ||||
|  | ||||
|     m = exeNameParser.match(line) | ||||
|     if m: | ||||
|         line = m.group(1) + "<exe-name>" + m.group(3) | ||||
|  | ||||
|     while True: | ||||
|         m = hexParser.match(line) | ||||
|         if m: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash