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

« back to all changes in this revision

Viewing changes to testsuite/expect/test17.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:
11
11
# Copyright (C) 2002-2006 The Regents of the University of California.
12
12
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
13
13
# Written by Morris Jette <jette1@llnl.gov>
14
 
# LLNL-CODE-402394.
 
14
# CODE-OCEC-09-009. All rights reserved.
15
15
16
16
# This file is part of SLURM, a resource management program.
17
 
# 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.
18
19
#  
19
20
# SLURM is free software; you can redistribute it and/or modify it under
20
21
# the terms of the GNU General Public License as published by the Free
47
48
# Build stdin file
48
49
#
49
50
exec $bin_rm -f $file_in $file_out $file_err
 
51
if {[file exists /tmp/$file_err]} {
 
52
        send_user "\nWARNING: can not delete /tmp/$file_err to run test\n"
 
53
        set random 0
 
54
        spawn $bin_date +%N
 
55
        expect {
 
56
                -re "($number)" {
 
57
                        set random $expect_out(1,string)
 
58
                        exp_continue
 
59
                }
 
60
                eof {
 
61
                        wait
 
62
                }
 
63
        }
 
64
        set file_err $file_err.$random
 
65
}
50
66
make_bash_script $file_in "
51
67
  $bin_pwd
52
68
  $bin_cat /no/such/file
102
118
        }
103
119
}
104
120
if {$matches != 1} {
105
 
        send_user "\nFAILURE: sbatch failed to change working directory\n"
 
121
        send_user "\nFAILURE: sbatch failed to get expected stdout\n"
106
122
        set exit_code 1
107
123
}
108
124