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

« back to all changes in this revision

Viewing changes to testsuite/expect/test1.84

  • 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:
16
16
# Copyright (C) 2002-2006 The Regents of the University of California.
17
17
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
18
18
# Written by Morris Jette <jette1@llnl.gov>
19
 
# LLNL-CODE-402394.
 
19
# CODE-OCEC-09-009. All rights reserved.
20
20
21
21
# This file is part of SLURM, a resource management program.
22
 
# For details, see <http://www.llnl.gov/linux/slurm/>.
 
22
# For details, see <https://computing.llnl.gov/linux/slurm/>.
 
23
# Please also read the included file: DISCLAIMER.
23
24
#  
24
25
# SLURM is free software; you can redistribute it and/or modify it under
25
26
# the terms of the GNU General Public License as published by the Free
66
67
set timeout        $max_job_delay
67
68
set task_cnt       0
68
69
 
69
 
set srun_pid [spawn $srun -N1 --cpus-per-task=1 -l -t1 $file_in]
 
70
set srun_pid [spawn $srun -N1 --cpus-per-task=1 --exclusive -l -t1 $file_in]
70
71
expect {
71
72
        -re "Granted job allocation ($number)" {
72
73
                set job_id $expect_out(1,string)
112
113
if {$cpu_cnt != $task_cnt} {
113
114
        send_user "FAILURE: should have run $cpu_cnt tasks (one per CPU) "
114
115
        send_user "instead of $task_cnt tasks\n"
 
116
        send_user "NOTE: This could be due to memory limit per allocated CPU\n\n"
115
117
        set exit_code 1
116
118
}
117
119
if {$cpu_cnt < 2} {
123
125
# Submit a 1 node job to determine the node's CPU count
124
126
#
125
127
set task_cnt  0
126
 
set srun_pid [spawn $srun -N1 -t1 --nodelist=$host --cpus-per-task=2 -l $bin_printenv SLURMD_NODENAME]
 
128
set srun_pid [spawn $srun -N1 -t1 --nodelist=$host --cpus-per-task=2 --exclusive -l $bin_printenv SLURMD_NODENAME]
127
129
expect {
128
130
        -re "Invalid node name specified" {
129
131
                send_user "\nWARNING: Appears you are using "
150
152
#
151
153
if {$task_cnt != [expr $cpu_cnt / 2]} {
152
154
        send_user "\nFAILURE: Improper task count for given cpus-per-task\n"
 
155
        send_user "NOTE: This could be due to memory limit per allocated CPU\n\n"
153
156
        set exit_code   1       
154
157
}
155
158