From 7cf354cd216230feec3abc341eb3cdcc5db82db5 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Wed, 5 Jul 2023 16:12:06 -0700 Subject: [PATCH] testsuite: simplify alloc-check test Problem: alloc-check test was simplified when it was submitted as flux-framework/flux-sched#1044. Simplify script in a similar way. For sched-simple, reduce the number of jobs submitted from 5 to 3 to expedite testing. --- t/t2304-sched-simple-alloc-check.t | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/t/t2304-sched-simple-alloc-check.t b/t/t2304-sched-simple-alloc-check.t index eb9c1e440356..d3acc533429f 100755 --- a/t/t2304-sched-simple-alloc-check.t +++ b/t/t2304-sched-simple-alloc-check.t @@ -52,13 +52,8 @@ test_expect_success 'load alloc-check plugin' ' flux jobtap load alloc-check.so ' test_expect_success 'submit consecutive jobs that exceed their time limit' ' - (for i in $(seq 5); \ - do flux submit -N1 -x -t1s sleep inf; \ - done) >jobids -' -test_expect_success 'wait for jobs to complete and capture their stderr' ' - (for id in $(cat jobids); do \ - flux job attach $id || true; \ + (for i in $(seq 3); \ + do flux run -N1 -x -t1s sleep 30 || true; \ done) 2>joberr ' test_expect_success 'some jobs received timeout exception' '