mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Fail test action when test suite fails. Minor README update.
This commit is contained in:
		
				
					committed by
					
						
						George Kraft
					
				
			
			
				
	
			
			
			
						parent
						
							d3428ef3a4
						
					
				
				
					commit
					5d9905f4e5
				
			@@ -73,7 +73,7 @@ a deployed cluster. The following example will skip the `Flaky`, `Slow`, and
 | 
				
			|||||||
`Feature` labeled tests:
 | 
					`Feature` labeled tests:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
juju run-action kubernetes-e2e/0 skip='\[(Flaky|Slow|Feature:.*)\]'
 | 
					juju run-action kubernetes-e2e/0 test skip='\[(Flaky|Slow|Feature:.*)\]'
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
> Note: the escaping of the regex due to how bash handles brackets.
 | 
					> Note: the escaping of the regex due to how bash handles brackets.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,3 +45,7 @@ tar -czf $ACTION_LOG_TGZ ${JUJU_ACTION_UUID}.log
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
action-set log="$ACTION_LOG_TGZ"
 | 
					action-set log="$ACTION_LOG_TGZ"
 | 
				
			||||||
action-set junit="$ACTION_JUNIT_TGZ"
 | 
					action-set junit="$ACTION_JUNIT_TGZ"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if tail ${JUJU_ACTION_UUID}.log | grep -q "Test Suite Failed"; then
 | 
				
			||||||
 | 
					  action-fail "Failure detected in the logs"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user