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

« back to all changes in this revision

Viewing changes to testsuite/expect/test21.23

  • 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) 2008 Lawrence Livermore National Security.
11
11
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
12
12
# Written by Joseph Donaghy <donaghy1@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
46
47
        send_user "\nWARNING: This test can't be run without a usable AccountStorageType\n"
47
48
        exit 0
48
49
}
 
50
if { [test_track_wckey] == 0} {
 
51
        send_user "\nWARNING: This test can't be run without TrackWCKey being set\n"
 
52
        exit 0
 
53
}
49
54
 
50
55
if { [string compare [check_accounting_admin_level] "Administrator"] } {
51
56
        send_user "\nWARNING: This test can't be run without being an Accounting administrator.\nUse sacctmgr mod user \$USER_NAME set admin=admin.\n"
133
138
# Spawn a job via salloc using this wckey
134
139
#
135
140
set job_id     0
136
 
set have_wckey 0
137
141
set matches    0
138
142
set timeout    $max_job_delay
139
143
spawn $salloc -N1 --account=$test_acct --wckey=$wk
145
149
                exp_continue
146
150
        }
147
151
        -re "WCKey=$wk" {
148
 
                incr have_wckey
149
152
                incr matches
150
153
                exp_continue
151
154
        }
152
 
        -re "WCKey=" {
153
 
                incr have_wckey
154
 
                exp_continue
155
 
        }
156
155
        timeout {
157
156
                send_user "\nFAILURE: salloc not responding\n"
158
157
                set exit_code 1
161
160
                wait
162
161
        }
163
162
}
164
 
if {$have_wckey == 0} {
165
 
        send_user "\nWARNING: TrackWCKey is disabled, can not continue test\n"
166
 
        exec $sacctmgr -i delete account $test_acct
167
 
        exit $exit_code
168
 
}
169
163
 
170
164
spawn $sacct -j $job_id --fields=wckey
171
165
        expect {