Skip to content

Commit

Permalink
testsuite: simplify alloc-check test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
garlick committed Jul 5, 2023
1 parent 5728847 commit 7cf354c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions t/t2304-sched-simple-alloc-check.t
Original file line number Diff line number Diff line change
Expand Up @@ -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' '
Expand Down

0 comments on commit 7cf354c

Please sign in to comment.