Skip to content
Snippets Groups Projects
Commit e6ea0ec4 authored by Morris Jette's avatar Morris Jette
Browse files

Merge branch 'slurm-2.5'

Conflicts:
	testsuite/expect/test15.21
parents 16d7318d f00745ea
No related branches found
No related tags found
No related merge requests found
...@@ -2130,6 +2130,7 @@ extern bitstr_t * select_p_resv_test(bitstr_t *avail_bitmap, uint32_t node_cnt, ...@@ -2130,6 +2130,7 @@ extern bitstr_t * select_p_resv_test(bitstr_t *avail_bitmap, uint32_t node_cnt,
int rem_nodes = node_cnt; int rem_nodes = node_cnt;
int rem_cores = core_cnt; int rem_cores = core_cnt;
bitstr_t *new_bitmap; bitstr_t *new_bitmap;
bool enforce_node_cnt = (node_cnt != 0);
xassert(avail_bitmap); xassert(avail_bitmap);
new_bitmap = bit_copy(avail_bitmap); new_bitmap = bit_copy(avail_bitmap);
...@@ -2160,7 +2161,6 @@ extern bitstr_t * select_p_resv_test(bitstr_t *avail_bitmap, uint32_t node_cnt, ...@@ -2160,7 +2161,6 @@ extern bitstr_t * select_p_resv_test(bitstr_t *avail_bitmap, uint32_t node_cnt,
continue; continue;
} }
rem_nodes--;
for (j = 0; j < node_cores; j++) { for (j = 0; j < node_cores; j++) {
if (bit_test(*core_bitmap, core_inx)) { if (bit_test(*core_bitmap, core_inx)) {
bit_clear(*core_bitmap, core_inx); bit_clear(*core_bitmap, core_inx);
...@@ -2170,6 +2170,9 @@ extern bitstr_t * select_p_resv_test(bitstr_t *avail_bitmap, uint32_t node_cnt, ...@@ -2170,6 +2170,9 @@ extern bitstr_t * select_p_resv_test(bitstr_t *avail_bitmap, uint32_t node_cnt,
} }
core_inx++; core_inx++;
} }
rem_nodes--;
if (enforce_node_cnt && (rem_nodes <= 0))
break;
} }
if ((rem_cores > 0) || (rem_nodes > 0)) if ((rem_cores > 0) || (rem_nodes > 0))
FREE_NULL_BITMAP(new_bitmap); FREE_NULL_BITMAP(new_bitmap);
......
...@@ -188,6 +188,13 @@ proc sinfo_test_2 { node proc_cnt total_procs } { ...@@ -188,6 +188,13 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
} }
exp_continue exp_continue
} }
-re "mix ($number)(K?) $node" {
set num_alloc $expect_out(1,string)
if {[string compare $expect_out(2,string) ""]} {
set num_alloc [expr $inode_procs * 1024]
}
exp_continue
}
-re $prompt { -re $prompt {
} }
timeout { timeout {
......
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