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

fix for test1.87 to work on multiple slurmd systems

parent 37adf0bb
No related branches found
No related tags found
No related merge requests found
...@@ -45,11 +45,6 @@ if {[test_front_end] != 0} { ...@@ -45,11 +45,6 @@ if {[test_front_end] != 0} {
exit 0 exit 0
} }
if {[test_multiple_slurmd] != 0} {
send_user "\nWARNING: This test is incompatable with multiple slurmd systems\n"
exit 0
}
# #
# Build input script file # Build input script file
# #
...@@ -100,7 +95,7 @@ set host_0 "" ...@@ -100,7 +95,7 @@ set host_0 ""
set host_1 "" set host_1 ""
set host_2 "" set host_2 ""
set host_3 "" set host_3 ""
send "$srun -l $bin_hostname\n" send "$srun -l $bin_printenv SLURMD_NODENAME\n"
expect { expect {
-re "($number): ($alpha_numeric)" { -re "($number): ($alpha_numeric)" {
set host_num $expect_out(1,string) set host_num $expect_out(1,string)
...@@ -164,7 +159,7 @@ if {$exit_code != 0} { ...@@ -164,7 +159,7 @@ if {$exit_code != 0} {
# #
set matches 0 set matches 0
send "$srun -l -N2 -n2 --relative=0 $bin_hostname\n" send "$srun -l -N2 -n2 --relative=0 $bin_printenv SLURMD_NODENAME\n"
expect { expect {
-re "($number): ($alpha_numeric)" { -re "($number): ($alpha_numeric)" {
set host_num $expect_out(1,string) set host_num $expect_out(1,string)
...@@ -215,7 +210,7 @@ if {$matches < 2} { ...@@ -215,7 +210,7 @@ if {$matches < 2} {
# Get two nodes relative (starting at) node 2 # Get two nodes relative (starting at) node 2
# #
set matches 0 set matches 0
send "$srun -l -N2 -n2 --relative=2 $bin_hostname\n" send "$srun -l -N2 -n2 --relative=2 $bin_printenv SLURMD_NODENAME\n"
expect { expect {
-re "($number): ($alpha_numeric)" { -re "($number): ($alpha_numeric)" {
set host_num $expect_out(1,string) set host_num $expect_out(1,string)
...@@ -267,7 +262,7 @@ if {$matches < 2} { ...@@ -267,7 +262,7 @@ if {$matches < 2} {
# Since there is only one node left, we check for a error message # Since there is only one node left, we check for a error message
# #
set error 0 set error 0
send "$srun -l -N2 -n2 -O --relative=3 $bin_hostname\n" send "$srun -l -N2 -n2 -O --relative=3 $bin_printenv SLURMD_NODENAME\n"
expect { expect {
-re "error:" { -re "error:" {
send_user "This error is expected, no worries\n" send_user "This error is expected, no worries\n"
......
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