mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-25 20:50:26 +00:00
modify hardware control testcase for physical machine
This commit is contained in:
@@ -11,12 +11,12 @@ end
|
||||
start:reventlog_clear
|
||||
cmd:reventlog $$CN clear
|
||||
check:rc==0
|
||||
check:output=~$$CN\s*:\s*clear |SEL cleared
|
||||
check:output=~$$CN\s*:\s*clear|SEL cleared
|
||||
end
|
||||
start:reventlog_numofentries
|
||||
cmd:reventlog $$CN 5
|
||||
check:rc==0
|
||||
check:output=~$$CN\s*:\s*.*\d\d/\d\d/\d\d\s*\S+ |$$CN: no SEL entries
|
||||
check:output=~$$CN\s*:\s*.*\d\d/\d\d/\d\d\s*\S+|$$CN: no SEL entries
|
||||
cmd:reventlog $$CN 3 | wc -l
|
||||
check:output=~\s*1\s*
|
||||
end
|
||||
|
@@ -106,7 +106,7 @@ cmd:chdef -p -t node -o $$CN groups="test"
|
||||
check:rc==0
|
||||
cmd:rinv test all
|
||||
check:rc==1
|
||||
check:output=~$$CN: SYSTEM |$$CN: System
|
||||
check:output=~$$CN: SYSTEM|$$CN: System
|
||||
cmd:chdef -m -t node -o $$CN groups="test"
|
||||
check:rc==0
|
||||
cmd:rmdef testnode;if [[ -e /tmp/testnode.stanza ]]; then cat /tmp/testnode.stanza | chdef -z;rm -rf /tmp/testnode.stanza;fi
|
||||
|
@@ -91,7 +91,7 @@ end
|
||||
start:rpower_reset
|
||||
description:This case is to test reset option could hard reset nodes when nodes are in on state.
|
||||
Attribute: $$CN-The operation object of rpower command
|
||||
cmd:stat=`rpower $$CN stat`;if ([[ $stat =~ on ]] || [[ $stat =~ Running ]]) ;then rpower $$CN reset;sleep 30;stat1=`rpower $$CN stat`;if ([[ $stat1 =~ on ]] || [[ $stat1 =~ Running ]]);then exit 0;else exit 1;fi;else rpower $$CN reset;sleep 30;stat1=`rpower $$CN stat`;if ([[ $stat1 =~ off ]] || [[ $stat1 =~ "Not Activated" ]]);then exit 0;else exit 1;fi;fi
|
||||
cmd:stat=`rpower $$CN stat`;if ([[ $stat =~ on ]] || [[ $stat =~ Running ]]) ;then rpower $$CN reset;sleep 300;stat1=`rpower $$CN stat`;if ([[ $stat1 =~ on ]] || [[ $stat1 =~ Running ]]);then exit 0;else exit 1;fi;else rpower $$CN reset;sleep 300;stat1=`rpower $$CN stat`;if ([[ $stat1 =~ off ]] || [[ $stat1 =~ "Not Activated" ]]);then exit 0;else exit 1;fi;fi
|
||||
check:rc==0
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user