summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-07-26 13:41:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-01 15:47:43 -0400
commit9bf0b2b169ead7f56e6d1313ff7e88441a78da58 (patch)
tree6f075922951be87ffd3878993423c293d306f084 /tests
parent871f9f005e06c40ac9fd28d55198fe42a9539c66 (diff)
downloadbfs-9bf0b2b169ead7f56e6d1313ff7e88441a78da58.tar.xz
tests: Make some more variables local
Diffstat (limited to 'tests')
-rw-r--r--tests/run.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 1b1e600..612e11a 100644
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -94,7 +94,7 @@ reap_test() {
# Wait for a background test to finish
wait_test() {
- local pid line
+ local pid line ret
while true; do
line=$((LINENO + 1))
@@ -121,7 +121,9 @@ wait_ready() {
# We'd like to parse the output of jobs -n, but we can't run it in a
# subshell or we won't get the right output
jobs -n >"$TMP/jobs"
- while read -r job status ret foo; do
+
+ local job status ret rest
+ while read -r job status ret rest; do
case "$status" in
Done)
reap_test 0