From fbd35ea5dd5da4c2f5f6b98bd70a39ef2c8dba2f Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Fri, 4 Jan 2008 20:59:57 +0000
Subject: [PATCH] fix bad test preventing select/cons_res from running jobs

---
 src/plugins/select/cons_res/select_cons_res.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/select/cons_res/select_cons_res.c b/src/plugins/select/cons_res/select_cons_res.c
index e5b01afacf1..c03fc9de9b6 100644
--- a/src/plugins/select/cons_res/select_cons_res.c
+++ b/src/plugins/select/cons_res/select_cons_res.c
@@ -2349,7 +2349,7 @@ extern int select_p_job_test(struct job_record *job_ptr, bitstr_t * bitmap,
 
 	if (mode == SELECT_MODE_TEST_ONLY)
 		test_only = true;
-	else if (mode == SELECT_MODE_TEST_ONLY)
+	else if (mode == SELECT_MODE_RUN_NOW)
 		test_only = false;
 	else	/* SELECT_MODE_WILL_RUN */
 		return EINVAL;	/* not yet supported */
-- 
GitLab