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

« back to all changes in this revision

Viewing changes to testsuite/expect/test17.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) 2005-2006 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
171
172
if {$job_prio1 == 0 || $job_prio2 == 0 || $job_prio3 == 0} {
172
173
        send_user "\nFAILURE: failed to job priorities of each submitted job\n"
173
174
        set exit_code 1
 
175
} elseif {$job_prio1 < 1000 || $job_prio2 < 1000 || $job_prio3 < 1000} {
 
176
        send_user "\nWARNING: PriorityWeight factors result in a job priority too low for this test\n"
174
177
} else {
175
178
        set diff2 [expr $job_prio1 - $job_prio2]
176
179
        set diff3 [expr $job_prio1 - $job_prio3]
177
180
#       Target for diff2 is 101
178
181
        if {$diff2 < 91 || $diff2 > 111} {
179
 
                send_user "\nFAILURE: job2 priority delta bad $diff2\n"
 
182
                send_user "\nFAILURE: job2 priority delta bad ($diff2, target is 101)\n"
180
183
                set exit_code 1
181
184
        }
182
185
#       Target for diff3 is 202
183
186
        if {$diff3 < 192 || $diff3 > 212} {
184
 
                send_user "\nFAILURE: job3 priority delta bad $diff3\n"
 
187
                send_user "\nFAILURE: job3 priority delta bad ($diff3, target is 202)\n"
185
188
                set exit_code 1
186
189
        }
187
190
}