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

« back to all changes in this revision

Viewing changes to testsuite/expect/test1.7

  • 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:
8
8
#          anything else indicates a failure mode that must be investigated.
9
9
############################################################################
10
10
# Copyright (C) 2002-2007 The Regents of the University of California.
 
11
# Copyright (C) 2008 Lawrence Livermore National Security.
11
12
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
12
13
# Written by Morris Jette <jette1@llnl.gov>
13
 
# LLNL-CODE-402394.
 
14
# CODE-OCEC-09-009. All rights reserved.
14
15
15
16
# This file is part of SLURM, a resource management program.
16
 
# For details, see <http://www.llnl.gov/linux/slurm/>.
 
17
# For details, see <https://computing.llnl.gov/linux/slurm/>.
 
18
# Please also read the included file: DISCLAIMER.
17
19
#  
18
20
# SLURM is free software; you can redistribute it and/or modify it under
19
21
# the terms of the GNU General Public License as published by the Free
44
46
# Make sure sleep time is no larger than InactiveLimit
45
47
set inactive_limit  $sleep_time
46
48
set kill_wait       $sleep_time
 
49
set over_time_limit 0
47
50
log_user 0
48
51
spawn $scontrol show config
49
52
expect {
55
58
                set kill_wait $expect_out(1,string)
56
59
                exp_continue
57
60
        }
 
61
        -re "OverTimeLimit *= UNLIMITED" {
 
62
                set over_time_limit 9999
 
63
                exp_continue
 
64
        }
 
65
        -re "OverTimeLimit *= ($number)" {
 
66
                set over_time_limit $expect_out(1,string)
 
67
                exp_continue
 
68
        }
58
69
        timeout {
59
70
                send_user "\nFAILURE: scontrol not responding\n"
60
71
                set exit_code 1
75
86
        send_user "\nWARNING: KillWait ($kill_wait) is too high for this test\n"
76
87
        exit 0
77
88
}
 
89
if {$over_time_limit > 0} {
 
90
        send_user "\nWARNING: OverTimeLimit too high for this test ($over_time_limit > 0)\n"
 
91
        exit 0
 
92
}
78
93
if {$inactive_limit < $sleep_time} {
79
94
        set sleep_time [expr $inactive_limit + $kill_wait]
80
95
        send_user "\nReset job sleep time to $sleep_time seconds\n"