Skip to content
Snippets Groups Projects
Commit 33f6e877 authored by Danny Auble's avatar Danny Auble
Browse files

TESTSUITE - add test_launch_type function

parent ffb1fc8f
No related branches found
No related tags found
No related merge requests found
......@@ -1374,14 +1374,31 @@ proc test_switch_nrt { } {
################################################################
proc test_launch_poe { } {
global scontrol bin_bash bin_grep
if {![string compare [test_launch_type] "poe"]} {
return 1
}
return 0
}
################################################################
#
# Proc: test_launch_type
#
# Purpose: Determine launch type plugin.
#
# Returns 1 if the system is running launch/poe, 0 otherwise
#
################################################################
proc test_launch_type { } {
global scontrol bin_bash bin_grep alpha_numeric_under
log_user 0
set launch_poe 0
set type ""
spawn -noecho $bin_bash -c "exec $scontrol show config | $bin_grep LaunchType"
expect {
"launch/poe" {
set launch_poe 1
-re "launch/($alpha_numeric_under)" {
set type $expect_out(1,string)
exp_continue
}
eof {
......@@ -1390,7 +1407,7 @@ proc test_launch_poe { } {
}
log_user 1
return $launch_poe
return $type
}
################################################################
......
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