mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 17:07:20 +08:00 
			
		
		
		
	Test basic networking functionality in the upgrade tests. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
# -*- bash -*-
 | 
						|
 | 
						|
load "../system/helpers"
 | 
						|
 | 
						|
setup() {
 | 
						|
    :
 | 
						|
}
 | 
						|
 | 
						|
teardown() {
 | 
						|
    :
 | 
						|
}
 | 
						|
 | 
						|
# skip a test when the given version is older than the currently tested one
 | 
						|
skip_if_version_older() {
 | 
						|
    # use ${PODMAN_UPGRADE_FROM##v} to trim the leading "v"
 | 
						|
    if printf '%s\n%s\n' "${PODMAN_UPGRADE_FROM##v}" "$1" | sort --check=quiet --version-sort; then
 | 
						|
        skip "${2-test is only meaningful when upgrading from $1 or later}"
 | 
						|
    fi
 | 
						|
}
 |