test: fix BusyBox portability issues in backend test suite

This commit is contained in:
Dushnilin
2026-08-11 16:33:46 +03:00
parent 3ddd321575
commit 180c52ecde
11 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -153,7 +153,7 @@ UCODE
lock_command="$(ucode -L "$LIB_DIR" "$SPAWN_UC")"
# Opened the way procd opens it, in this shell, so the child inherits it.
( eval "exec 1000>\"\$LOCK_FILE\""; eval "$lock_command"; sleep 0.4 )
( eval "exec 1000>\"\$LOCK_FILE\""; eval "$lock_command"; sleep 1 )
lock_seen="$(tr -d ' \n' < "$LOCK_OUT")"
[ "$lock_seen" = 0 ] \
@@ -174,7 +174,7 @@ UCODE
pid_command="$(ucode -L "$LIB_DIR" "$SPAWN_UC")"
eval "$pid_command" >/dev/null
sleep 0.3
sleep 1
pid="$(tr -d ' \n' < "$PID_OUT")"
[ -n "$pid" ] || fail "background_command_with_pid wrote no pid"