Skip to content
Snippets Groups Projects
Commit b99ef964 authored by jette's avatar jette
Browse files

Modify test to work if partition name contains "."

parent 6c3f5e2e
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ make_bash_script $file_in "$bin_id"
set part_cnt 0
set fd [open "|$scontrol --all --oneliner show partition"]
while {[gets $fd line] != -1} {
if {[regexp {^PartitionName=(\w+).*State=UP} $line frag part($part_cnt)] == 1} {
if {[regexp {^PartitionName=([^ ]*).*State=UP} $line frag part($part_cnt)] == 1} {
incr part_cnt
}
}
......
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