Skip to content

Commit 79226a2

Browse files
kvapsclaude
andcommitted
test(e2e): replace process substitution with pipe in two-volume-rd
Process substitution `<(...)` failed in the satellite container with '/dev/fd/63: No such file or directory' — the debian-slim image's shell can't see /proc/self/fd in this exec context. Switch to a plain pipe (dd ... | md5sum | awk). Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
1 parent 4c22653 commit 79226a2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/e2e/two-volume-rd.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ on_node "$N1" drbdadm primary "$RD" 2>/dev/null || true
7171

7272
md5_v0=$(on_node "$N1" bash -c "
7373
dd if=/dev/urandom of=${DEV0} bs=4096 count=1 status=none oflag=direct
74-
md5sum < <(dd if=${DEV0} bs=4096 count=1 status=none iflag=direct) | awk '{print \$1}'
74+
dd if=${DEV0} bs=4096 count=1 status=none iflag=direct | md5sum | awk '{print \$1}'
7575
")
7676
md5_v1=$(on_node "$N1" bash -c "
7777
dd if=/dev/urandom of=${DEV1} bs=4096 count=1 status=none oflag=direct
78-
md5sum < <(dd if=${DEV1} bs=4096 count=1 status=none iflag=direct) | awk '{print \$1}'
78+
dd if=${DEV1} bs=4096 count=1 status=none iflag=direct | md5sum | awk '{print \$1}'
7979
")
8080
on_node "$N1" drbdadm secondary "$RD" || true
8181

@@ -86,8 +86,8 @@ fi
8686

8787
# Replica side: both volumes must read identical data after a peer flip.
8888
on_node "$N2" drbdadm primary "$RD"
89-
md5_v0_peer=$(on_node "$N2" bash -c "md5sum < <(dd if=${DEV0} bs=4096 count=1 status=none iflag=direct) | awk '{print \$1}'")
90-
md5_v1_peer=$(on_node "$N2" bash -c "md5sum < <(dd if=${DEV1} bs=4096 count=1 status=none iflag=direct) | awk '{print \$1}'")
89+
md5_v0_peer=$(on_node "$N2" bash -c "dd if=${DEV0} bs=4096 count=1 status=none iflag=direct | md5sum | awk '{print \$1}'")
90+
md5_v1_peer=$(on_node "$N2" bash -c "dd if=${DEV1} bs=4096 count=1 status=none iflag=direct | md5sum | awk '{print \$1}'")
9191
on_node "$N2" drbdadm secondary "$RD"
9292

9393
if [[ "$md5_v0" != "$md5_v0_peer" ]]; then

0 commit comments

Comments
 (0)