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

« back to all changes in this revision

Viewing changes to testsuite/expect/test15.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:
8
8
#          "FAILURE: ..." otherwise with an explanation of the failure, OR
9
9
#          anything else indicates a failure mode that must be investigated.
10
10
############################################################################
11
 
# Copyright (C) 2002-2006 The Regents of the University of California.
 
11
# Copyright (C) 2002-2007 The Regents of the University of California.
 
12
# Copyright (C) 2008 Lawrence Livermore National Security.
12
13
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
13
14
# Written by Morris Jette <jette1@llnl.gov>
14
 
# LLNL-CODE-402394.
 
15
# CODE-OCEC-09-009. All rights reserved.
15
16
16
17
# This file is part of SLURM, a resource management program.
17
 
# For details, see <http://www.llnl.gov/linux/slurm/>.
 
18
# For details, see <https://computing.llnl.gov/linux/slurm/>.
 
19
# Please also read the included file: DISCLAIMER.
18
20
#  
19
21
# SLURM is free software; you can redistribute it and/or modify it under
20
22
# the terms of the GNU General Public License as published by the Free
42
44
 
43
45
print_header $test_id
44
46
 
 
47
set inactive_limit  $sleep_time
45
48
set kill_wait       $sleep_time
 
49
set over_time_limit 0
46
50
log_user 0
47
51
spawn $scontrol show config
48
52
expect {
 
53
        -re "InactiveLimit *= ($number)" {
 
54
                set inactive_limit $expect_out(1,string)
 
55
                exp_continue
 
56
        }
49
57
        -re "KillWait *= ($number)" {
50
58
                set kill_wait $expect_out(1,string)
51
59
                exp_continue
52
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
        }
53
69
        timeout {
54
70
                send_user "\nFAILURE: scontrol not responding\n"
55
71
                set exit_code 1
59
75
        }
60
76
}
61
77
log_user 1
 
78
if {$inactive_limit == 0} {
 
79
        set inactive_limit $sleep_time
 
80
}
 
81
if {$inactive_limit < 120} {
 
82
        send_user "\nWARNING: InactiveLimit ($inactive_limit) is too low for this test\n"
 
83
        exit 0
 
84
}
62
85
if {$kill_wait > 60} {
63
86
        send_user "\nWARNING: KillWait ($kill_wait) is too high for this test\n"
64
87
        exit 0
65
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
}
66
93
 
67
94
#
68
95
# Build input script file