From 70f251ff3fd8c270ef79760782640dd6c1ff0be7 Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Fri, 6 Jun 2014 15:06:18 -0700 Subject: [PATCH] Fix test to work with job profiling Job profiling leaves a file open --- testsuite/expect/test7.9 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/testsuite/expect/test7.9 b/testsuite/expect/test7.9 index bd1f8c5379e..9d36613d621 100755 --- a/testsuite/expect/test7.9 +++ b/testsuite/expect/test7.9 @@ -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} { -- GitLab