From 2733b657025b8652fba6d6f49059a3a0e4be98c6 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Tue, 20 May 2014 16:45:59 -0700
Subject: [PATCH] Fix test to not mistake calling prompt for the prompt it is
 suppose to wait for.

---
 testsuite/expect/test1.91 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testsuite/expect/test1.91 b/testsuite/expect/test1.91
index 4005bc9af6d..72c40a6311b 100755
--- a/testsuite/expect/test1.91
+++ b/testsuite/expect/test1.91
@@ -460,8 +460,13 @@ expect {
 		send_user "or failure to recognize prompt\n"
 		set exit_code 1
 	}
+	-re "$srun" {
+		# just so we don't grab the srun call
+		exp_continue;
+	}
 	-re $prompt
 }
+
 if {$task_mask != $expected_mask} {
 	send_user "\nFAILURE: affinity mask inconsistency ($task_mask,$expected_mask)\n"
 	set exit_code 1
-- 
GitLab