Skip to content
Snippets Groups Projects
Commit 70f251ff authored by Morris Jette's avatar Morris Jette
Browse files

Fix test to work with job profiling

Job profiling leaves a file open
parent b8bcc943
No related branches found
No related tags found
No related merge requests found
......@@ -50,10 +50,15 @@ print_header $test_id
# by just closing all files after fd=3. Closing all files from switch/elan
# would disable its use.
#
set hdf5_profile 0
set invalid 0
log_user 0
spawn $scontrol show config
expect {
-re "acct_gather_profile/hdf5" {
set hdf5_profile 1
exp_continue
}
-re "launch/poe" {
send_user "\nWARNING: test incompatible with launch/poe\n"
set invalid 1
......@@ -170,6 +175,12 @@ if {$fini != 1} {
send_user "\nFAILURE: script never completed\n"
set exit_code 1
}
if {$hdf5_profile == 1} {
if {$matches == $iterations} {
send_user " Job profiling leave one open file\n"
set matches 0
}
}
if {$matches != 0} {
set tot [expr $iterations + 1]
if {$matches <= 1} {
......@@ -182,6 +193,7 @@ if {$matches != 0} {
send_user " JobAcctFrequency is set to a small value and is\n"
send_user " indicative of a non-checkpointable job. For details,\n"
send_user " see src/plugins/jobacct/linux/jobacct_linux.c\n"
send_user " To diagnose, use lsof to examine spawned job.\n"
}
if {$exit_code == 0} {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment