From 80e2ca685da43503c9b876fb9ce4b86883c54e1b Mon Sep 17 00:00:00 2001
From: jette <jette@schedmd.com>
Date: Mon, 3 Dec 2012 12:55:58 -0800
Subject: [PATCH] Set timeouts in some tests for very slow slurmctld

---
 testsuite/expect/test1.11 | 2 +-
 testsuite/expect/test1.12 | 1 +
 testsuite/expect/test1.13 | 1 +
 testsuite/expect/test1.18 | 3 ++-
 4 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/testsuite/expect/test1.11 b/testsuite/expect/test1.11
index a97192b004d..bd2c5fa0dcc 100755
--- a/testsuite/expect/test1.11
+++ b/testsuite/expect/test1.11
@@ -55,7 +55,7 @@ print_header $test_id
 #
 set job_name      "AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJKKKKKLLLLLMMMMM"
 set job_id         0
-
+set timeout        $max_job_delay
 set srun_pid [spawn $srun --verbose --job-name=$job_name -t1 $bin_id]
 expect {
 	# needed for cray systems
diff --git a/testsuite/expect/test1.12 b/testsuite/expect/test1.12
index a3849e9d5f6..00372ab9b69 100755
--- a/testsuite/expect/test1.12
+++ b/testsuite/expect/test1.12
@@ -55,6 +55,7 @@ make_bash_script $file_in "
   $scontrol show step \$SLURM_JOB_ID.\$SLURM_STEPID
 "
 
+set timeout $max_job_delay
 set srun_pid [spawn $srun -N1 -t1 --checkpoint=$ckpt_in ./$file_in]
 expect {
 	-re "Checkpoint=($number)" {
diff --git a/testsuite/expect/test1.13 b/testsuite/expect/test1.13
index 3b5a5d95e70..49af4991dcb 100755
--- a/testsuite/expect/test1.13
+++ b/testsuite/expect/test1.13
@@ -70,6 +70,7 @@ if {$matches != 1} {
 # Note the small value of timeout
 #
 set matches 0
+set timeout $max_job_delay
 set srun_pid [spawn $srun --immediate -v -t1 $bin_pwd]
 expect {
 	-re "error" {
diff --git a/testsuite/expect/test1.18 b/testsuite/expect/test1.18
index 02be33df02c..b4a909e6cb5 100755
--- a/testsuite/expect/test1.18
+++ b/testsuite/expect/test1.18
@@ -41,7 +41,8 @@ print_header $test_id
 #
 # Run a job attempting to get some dummy license name
 #
-set match 0
+set match   0
+set timeout $max_job_delay
 set srun_pid [spawn $srun --licenses=DUMMY_FOR_TESTING $bin_printenv SLURMD_NODENAME]
 expect {
 	-re "Invalid license" {
-- 
GitLab