~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to testsuite/expect/test19.5

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# Copyright (C) 2007 The Regents of the University of California.
11
11
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
12
12
# Written by Morris Jette <jette1@llnl.gov>
13
 
# LLNL-CODE-402394.
 
13
# CODE-OCEC-09-009. All rights reserved.
14
14
15
15
# This file is part of SLURM, a resource management program.
16
 
# For details, see <http://www.llnl.gov/linux/slurm/>.
 
16
# For details, see <https://computing.llnl.gov/linux/slurm/>.
 
17
# Please also read the included file: DISCLAIMER.
17
18
#  
18
19
# SLURM is free software; you can redistribute it and/or modify it under
19
20
# the terms of the GNU General Public License as published by the Free
191
192
                        set run_time $expect_out(1,string)
192
193
                        exp_continue
193
194
                }
 
195
                -re "CG *0:($number)" {
 
196
                        send_user "\nFAILURE: job unexpected found in completing state.\n"
 
197
                        send_user "  This may be a sign of node failure and job requeue.\n"
 
198
                        set exit_code 1
 
199
                        set run_time $expect_out(1,string)
 
200
                        exp_continue
 
201
                }
194
202
                eof {
195
203
                        wait
196
204
                }
198
206
#       Trigger events happen on a periodic basis, so there is likely to 
199
207
#       be a delay up to 20 seconds
200
208
        if {$run_time < 30 || $run_time > 59} {
201
 
                send_user "\nFAILURE: file $file_out_time contents are bad\n"
 
209
                send_user "\nFAILURE: file $file_out_time contents are bad, R run time\n"
202
210
                set exit_code 1
203
211
        }
204
212
}
206
214
        send_user "\nFAILURE: file $file_out_fini is missing\n"
207
215
        set exit_code 1
208
216
} else {
 
217
#       Check that job run time was one minute. If SLURM is configured to 
 
218
#       power down idle nodes, this could possibly take a bit more time.
209
219
        set job_fini 0
210
220
        spawn $bin_cat $file_out_fini
211
221
        expect {
212
 
                -re "CD *1:0" {
 
222
                -re "CD *1:($number)" {
213
223
                        set job_fini 1
214
224
                        exp_continue
215
225
                }
218
228
                }
219
229
        }
220
230
        if {$job_fini == 0} {
221
 
                send_user "\nFAILURE: file $file_out_fini contents are bad\n"
 
231
                send_user "\nFAILURE: file $file_out_fini contents are bad, CD run time\n"
222
232
                set exit_code 1
223
233
        }
224
234
}