chiark / gitweb /
test suite: gnupg: Save stdin on apt-key's import invocations
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jan 2018 14:34:08 +0000 (14:34 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jan 2018 16:18:53 +0000 (16:18 +0000)
commita1f9fa9628907a650f00f27ad1669d5ad69028d3
tree3bb595e7723d9f599078c73ac3fa6d8ec8643355
parent640602b53ec3a387aef776d6a727118e1784f6d7
test suite: gnupg: Save stdin on apt-key's import invocations

Recognise these with an ad-hoc pattern on the command line arguments.
When they occur, save stdin to a temporary file.

We can't do this generally, because stdin might be some thing that
gpg's caller doesn't expect gpg to eat.

When we do this saving, print the size in bytes of the input file.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tstunt/gpg-locked