mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	Merge pull request #2361 from caomengmeng/update_latest_version_checkpoint
update redhat and sles migration test cases with latest version check method
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
start:redhat_migration1
 | 
			
		||||
os:Linux
 | 
			
		||||
description:update xCAT from $$MIGRATION1_VERSION to $$LATEST_VERSION, these two global parameter defined in config file
 | 
			
		||||
description:update xCAT from $$MIGRATION1_VERSION to latest version, these two global parameter defined in config file
 | 
			
		||||
 | 
			
		||||
#cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi
 | 
			
		||||
#cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN  xcatmaster=$$MN
 | 
			
		||||
@@ -100,14 +100,13 @@ cmd:xdsh $$CN "lsdef"
 | 
			
		||||
check:output=~node0001
 | 
			
		||||
cmd:xdsh $$CN "noderm node0001"
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:xdsh $$CN "lsxcatd -v"
 | 
			
		||||
cmd:latest_version_info=`lsxcatd -v`;xdsh $$CN "lsxcatd -v" | grep "$latest_version_info"
 | 
			
		||||
check:rc==0
 | 
			
		||||
check:output=~$$LATEST_VERSION
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
start:redhat_migration2
 | 
			
		||||
os:Linux
 | 
			
		||||
description:update xCAT from $$MIGRATION2_VERSION to $$LATEST_VERSION, these two global parameter defined in config file
 | 
			
		||||
description:update xCAT from $$MIGRATION2_VERSION to latest version, these two global parameter defined in config file
 | 
			
		||||
stop:yes
 | 
			
		||||
 | 
			
		||||
#cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi
 | 
			
		||||
@@ -208,8 +207,7 @@ cmd:xdsh $$CN "lsdef"
 | 
			
		||||
check:output=~node0001
 | 
			
		||||
cmd:xdsh $$CN "noderm node0001"
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:xdsh $$CN "lsxcatd -v"
 | 
			
		||||
cmd:latest_version_info=`lsxcatd -v`;xdsh $$CN "lsxcatd -v" | grep "$latest_version_info"
 | 
			
		||||
check:rc==0
 | 
			
		||||
check:output=~$$LATEST_VERSION
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
start:sles_migration1
 | 
			
		||||
os:Linux
 | 
			
		||||
description:update xCAT from $$MIGRATION1_VERSION to $$LATEST_VERSION, these two global parameter defined in config file
 | 
			
		||||
description:update xCAT from $$MIGRATION1_VERSION to latest version, these two global parameter defined in config file
 | 
			
		||||
 | 
			
		||||
#cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi
 | 
			
		||||
#cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN  xcatmaster=$$MN
 | 
			
		||||
@@ -103,14 +103,13 @@ cmd:xdsh $$CN "lsdef"
 | 
			
		||||
check:output=~node0001
 | 
			
		||||
cmd:xdsh $$CN "noderm node0001"
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:xdsh $$CN "lsxcatd -v"
 | 
			
		||||
cmd:latest_version_info=`lsxcatd -v`;xdsh $$CN "lsxcatd -v" | grep "$latest_version_info"
 | 
			
		||||
check:rc==0
 | 
			
		||||
check:output=~$$LATEST_VERSION
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
start:sles_migration2
 | 
			
		||||
os:Linux
 | 
			
		||||
description:update xCAT from $$MIGRATION22VERSION to $$LATEST_VERSION, these two global parameter defined in config file
 | 
			
		||||
description:update xCAT from $$MIGRATION22VERSION to latest version, these two global parameter defined in config file
 | 
			
		||||
 | 
			
		||||
#cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi
 | 
			
		||||
#cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN  xcatmaster=$$MN
 | 
			
		||||
@@ -213,8 +212,7 @@ cmd:xdsh $$CN "lsdef"
 | 
			
		||||
check:output=~node0001
 | 
			
		||||
cmd:xdsh $$CN "noderm node0001"
 | 
			
		||||
check:rc==0
 | 
			
		||||
cmd:xdsh $$CN "lsxcatd -v"
 | 
			
		||||
cmd:latest_version_info=`lsxcatd -v`;xdsh $$CN "lsxcatd -v" | grep "$latest_version_info"
 | 
			
		||||
check:rc==0
 | 
			
		||||
check:output=~$$LATEST_VERSION
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user