mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	Add a separate test case to compare postscripts on MN and CN.
This commit is contained in:
		| @@ -2,6 +2,7 @@ SN_setup_case | ||||
| reg_linux_diskless_installation_hierarchy | ||||
| reg_linux_diskless_installation_hierarchy_squashfs | ||||
| reg_linux_diskfull_installation_hierarchy | ||||
| compare_postscripts | ||||
| updatenode_P_script1 | ||||
| updatenode_P_script1_script2 | ||||
| updatenode_P_script2 | ||||
|   | ||||
| @@ -24,6 +24,7 @@ nodeset_cmdline | ||||
| nodeset_runimg | ||||
| nodeset_shell | ||||
| reg_linux_diskfull_installation_flat | ||||
| compare_postscripts | ||||
| reg_linux_diskless_installation_flat | ||||
| reg_linux_diskless_installation_flat_squashfs | ||||
| reg_linux_statelite_installation_flat | ||||
|   | ||||
| @@ -2,6 +2,7 @@ SN_setup_case | ||||
| reg_linux_diskless_installation_hierarchy | ||||
| reg_linux_diskless_installation_hierarchy_squashfs | ||||
| reg_linux_diskfull_installation_hierarchy | ||||
| compare_postscripts | ||||
| updatenode_P_script1 | ||||
| updatenode_P_script1_script2 | ||||
| updatenode_P_script2 | ||||
|   | ||||
| @@ -24,6 +24,7 @@ nodeset_cmdline | ||||
| nodeset_runimg | ||||
| nodeset_shell | ||||
| reg_linux_diskfull_installation_flat | ||||
| compare_postscripts | ||||
| reg_linux_diskless_installation_flat | ||||
| reg_linux_diskless_installation_flat_squashfs | ||||
| reg_linux_statelite_installation_flat | ||||
|   | ||||
| @@ -2,6 +2,7 @@ SN_setup_case | ||||
| reg_linux_diskless_installation_hierarchy | ||||
| reg_linux_diskless_installation_hierarchy_squashfs | ||||
| reg_linux_diskfull_installation_hierarchy | ||||
| compare_postscripts | ||||
| assign_certain_command_permission | ||||
| bmcdiscover_help | ||||
| bmcdiscover_q | ||||
|   | ||||
| @@ -15,6 +15,7 @@ nodeset_cmdline | ||||
| nodeset_runimg | ||||
| nodeset_shell | ||||
| reg_linux_diskfull_installation_flat | ||||
| compare_postscripts | ||||
| reg_linux_diskless_installation_flat | ||||
| reg_linux_diskless_installation_flat_squashfs | ||||
| reg_linux_statelite_installation_flat | ||||
|   | ||||
| @@ -2,6 +2,7 @@ SN_setup_case | ||||
| reg_linux_diskless_installation_hierarchy | ||||
| reg_linux_diskless_installation_hierarchy_squashfs | ||||
| reg_linux_diskfull_installation_hierarchy | ||||
| compare_postscripts | ||||
| assign_certain_command_permission | ||||
| bmcdiscover_help | ||||
| bmcdiscover_q | ||||
|   | ||||
| @@ -15,6 +15,7 @@ nodeset_cmdline | ||||
| nodeset_runimg | ||||
| nodeset_shell | ||||
| reg_linux_diskfull_installation_flat | ||||
| compare_postscripts | ||||
| reg_linux_diskless_installation_flat | ||||
| reg_linux_diskless_installation_flat_squashfs | ||||
| reg_linux_statelite_installation_flat | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| reg_linux_diskless_installation_flat | ||||
| reg_linux_diskless_installation_flat_squashfs | ||||
| reg_linux_diskfull_installation_flat | ||||
| compare_postscripts | ||||
| assign_certain_command_permission | ||||
| bmcdiscover_help | ||||
| bmcdiscover_q | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| reg_linux_diskless_installation_flat | ||||
| reg_linux_diskless_installation_flat_squashfs | ||||
| reg_linux_diskfull_installation_flat | ||||
| compare_postscripts | ||||
| assign_certain_command_permission | ||||
| bmcdiscover_help | ||||
| bmcdiscover_q | ||||
|   | ||||
							
								
								
									
										17
									
								
								xCAT-test/autotest/testcase/installation/compare_postscripts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								xCAT-test/autotest/testcase/installation/compare_postscripts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| start:compare_postscripts | ||||
| os:Linux | ||||
| label:provision | ||||
| cmd:cd /install/postscripts; tar cvf /tmp/sn.tar * | ||||
| cmd:scp /tmp/sn.tar $$CN:/tmp | ||||
| cmd:xdsh $$CN "cd /xcatpost; tar cvf /tmp/cn.tar *" | ||||
| cmd:xdsh $$CN "mkdir -p /tmp/sn; tar xvf /tmp/sn.tar -C /tmp/sn" | ||||
| cmd:xdsh $$CN "mkdir -p /tmp/cn; tar xvf /tmp/cn.tar -C /tmp/cn; rm -f /tmp/cn/mypost*" | ||||
| cmd:xdsh $$CN "diff -r /tmp/sn /tmp/cn > /tmp/diff.list" | ||||
| check:rc==0 | ||||
| cmd:xdsh $$CN "cat /tmp/diff.list" | ||||
| check:rc==0 | ||||
|  | ||||
| cmd:rm /tmp/sn.tar | ||||
| cmd:xdsh $$CN "rm /tmp/cn.tar; rm -fr /tmp/sn; rm -fr /tmp/cn; rm /tmp/diff.list" | ||||
| check:rc==0 | ||||
| end | ||||
		Reference in New Issue
	
	Block a user