Commit c713529e authored by Richard W.M. Jones's avatar Richard W.M. Jones
Browse files

copy: In tests, ensure pwrite scripts consume stdin

These tests failed on macOS with this error:

  nbdkit: eval[1]: error: /tmp/nbdkit8bDHNo/pwrite: write: Broken pipe
  nbdkit: eval[1]: error: /tmp/nbdkit8bDHNo/pwrite: script exited with error, but did not print an error message on stderr

A simplified example is:

  ./nbdkit -fv eval get_size='echo 7E' pwrite='exit 0' \
          --run 'nbdsh -u $uri -c "h.pwrite(bytearray(33554432),0)"'

The problem is that the pwrite script does not consume stdin so nbdkit
gets an EPIPE error.  This is a problem in the test, not nbdkit.
parent f238c6ba
Pipeline #612599915 failed with stage
in 10 minutes and 25 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment