Commit d75e1fd6 authored by Christopher Alfeld's avatar Christopher Alfeld
Browse files

Updated to use pid and eid for nfree/nalloc. Untested due to sanity checks in the two tools.

parent 66e4490a
......@@ -69,17 +69,16 @@ if {! [file exists $irFile]} {
outs ""
outs "Ending Testbed run for $irFile. [clock format [clock seconds]]"
ir read $irFile
outs "Unallocating resources"
ir read $irFile
set nodemap [ir get /virtual/nodes]
set machines {}
foreach pair $nodemap {
lappend machines [lindex $pair 1]
}
if {[catch "exec $nfree $id $machines >@ $logFp 2>@ $logFp err"]} {
if {[catch "exec $nfree $pid $eid >@ $logFp 2>@ $logFp err"]} {
outs stderr "Error freeing resources. ($err)"
exit 1
}
......
......@@ -142,7 +142,7 @@ foreach pair $nodemap {
}
outs "Reserving resources."
if {[catch "exec $reserve $id $machines >@ $logFp 2>@ $logFp" err]} {
if {[catch "exec $reserve $pid $eid $machines >@ $logFp 2>@ $logFp" err]} {
outs stderr "Error reserving resources. ($err)"
unlock
exit 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment