Skip to content

Commit

Permalink
Merge pull request #180 from garlick/issue#177
Browse files Browse the repository at this point in the history
testsuite: fix imp kill test
  • Loading branch information
mergify[bot] authored Nov 7, 2023
2 parents f8074d4 + 493dba2 commit 446d6bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t2001-imp-kill.t
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ test "$(FLUX_IMP_CONFIG_PATTERN=sign-none.toml ./flux-imp kill 0 $$ \
waitfile()
{
count=0
while ! grep "$2" $1 >/dev/null 2>&12>&1; do
while ! grep "$2" $1 >/dev/null 2>&1; do
sleep 0.2
let count++
count=$(($count + 1))
test $count -gt 20 && break
done
grep "$2" $1 >/dev/null
Expand All @@ -174,8 +174,8 @@ test_expect_success NO_CHAIN_LINT,SUID_ENABLED,USER_CGROUP \
echo "\$@"
printf "\$PPID\n" >$(pwd)/sleeper.pid
/bin/sleep "\$@" &
pid=$! &&
trap "echo got SIGTERM; kill \$pid" SIGTERM
pid=\$! &&
trap "echo got SIGTERM; kill \$pid" TERM
wait
echo sleep exited with \$? >&2
EOF
Expand Down

0 comments on commit 446d6bd

Please sign in to comment.