mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
add a case to clean up the test environment and update the bundle files
This commit is contained in:
parent
4b7988bfe5
commit
b2aeb152c6
@ -303,3 +303,4 @@ reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
redhat_migration1
|
||||
redhat_migration2
|
||||
clean_up_env
|
||||
|
@ -206,3 +206,4 @@ reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
redhat_migration1
|
||||
redhat_migration2
|
||||
clean_up_env
|
||||
|
@ -301,3 +301,4 @@ reg_linux_diskfull_installation_hierarchy
|
||||
reg_linux_diskless_installation_hierarchy
|
||||
reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
clean_up_env
|
||||
|
@ -204,3 +204,4 @@ reg_linux_diskfull_installation_hierarchy
|
||||
reg_linux_diskless_installation_hierarchy
|
||||
reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
clean_up_env
|
||||
|
@ -303,3 +303,4 @@ reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
redhat_migration1
|
||||
redhat_migration2
|
||||
clean_up_env
|
||||
|
@ -194,3 +194,4 @@ switchdiscover_range_z
|
||||
switchdiscover_range_z_V
|
||||
redhat_migration1
|
||||
redhat_migration2
|
||||
clean_up_env
|
||||
|
@ -206,3 +206,4 @@ reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
redhat_migration1
|
||||
redhat_migration2
|
||||
clean_up_env
|
||||
|
@ -267,3 +267,4 @@ reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
sles_migration1
|
||||
sles_migration2
|
||||
clean_up_env
|
||||
|
@ -216,3 +216,4 @@ reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
sles_migration1
|
||||
sles_migration2
|
||||
clean_up_env
|
||||
|
23
xCAT-test/autotest/testcase/testenv/case0
Normal file
23
xCAT-test/autotest/testcase/testenv/case0
Normal file
@ -0,0 +1,23 @@
|
||||
start:clean_up_env
|
||||
description:power off service node and compute node for next test usage
|
||||
cmd:rpower $$SN stat >> /tmp/snstat
|
||||
cmd:if [[ ! `cat /tmp/snstat |grep -i "Not Activated"` ]]; then rpower $$SN off;fi
|
||||
check:rc==0
|
||||
cmd:rm -rf /tmp/snstat
|
||||
cmd:if [[ "__GETNODEATTR($$SN,mgt)__" =~ "ipmi" ]]; then sleep 1800;else sleep 180;fi
|
||||
cmd:rpower $$SN stat >> /tmp/snstat
|
||||
check:rc==0
|
||||
cmd:if [[ "__GETNODEATTR($$SN,arch)__" = "ppc64" ]]; then cat /tmp/snstat |grep -i "Not Activated";else cat /tmp/snstat|grep off;fi
|
||||
check:rc==0
|
||||
cmd:rm -rf /tmp/snstat
|
||||
cmd:rpower $$CN stat >> /tmp/cnstat
|
||||
cmd:if [[ ! `cat /tmp/cnstat |grep -i "Not Activated"` ]]; then rpower $$CN off;fi
|
||||
check:rc==0
|
||||
cmd:rm -rf /tmp/cnstat
|
||||
cmd:if [[ "__GETNODEATTR($$CN,mgt)__" =~ "ipmi" ]]; then sleep 1800;else sleep 180;fi
|
||||
cmd:rpower $$CN stat >> /tmp/cnstat
|
||||
check:rc==0
|
||||
cmd:if [[ "__GETNODEATTR($$CN,arch)__" = "ppc64" ]]; then cat /tmp/cnstat |grep "Not Activated";else cat /tmp/cnstat|grep off;fi
|
||||
check:rc==0
|
||||
cmd:rm -rf /tmp/cnstat
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user