Skip to content
Snippets Groups Projects
Commit 2a01f06d authored by David Bigagli's avatar David Bigagli
Browse files

Update test2.15 to detect if KillOnBadExit is set to 1

parent d7b4ae0c
No related branches found
No related tags found
No related merge requests found
......@@ -1880,6 +1880,37 @@ proc test_emulated { } {
return $emulated
}
################################################################
#
# Proc: test_killonbadexit
#
# Purpose: Determine if KillOnBadExit is configured to be 1.
#
#
# Returns 1 if KillOnBadExit is 1.
#
################################################################
proc test_killonbadexit { } {
global scontrol bin_bash bin_grep
log_user 0
set killonbadexit 0
spawn -noecho $bin_bash -c "exec $scontrol show config | $bin_grep KillOnBadExit"
expect {
-re "KillOnBadExit *= *1" {
set killonbadexit 1
exp_continue
}
eof {
wait
}
}
log_user 1
return $killonbadexit
}
################################################################
#
# Proc: get_cycle_count
......
......@@ -52,6 +52,9 @@ if { [test_xcpu] } {
} elseif {[test_launch_poe]} {
send_user "\nWARNING: This test is incompatible with POE systems\n"
exit 0
} elseif {[test_killonbadexit]} {
send_user "\nWARNING: This test is incompatible with KillOnBadExit=1\n"
exit 0
}
set node_cnt 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment