change(test): add an identifiable suffix to zcash-rpc-diff temp directories (#4577)
* Add an identifiable suffix to zcash-rpc-diff temp directories * Explain why we need a fallback temp command Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
3a7c2c8926
commit
1f7e621e34
|
@ -27,7 +27,9 @@ fi
|
|||
ZEBRAD_RPC_PORT=$1
|
||||
shift
|
||||
|
||||
ZCASH_RPC_TMP_DIR=$(mktemp -d)
|
||||
# Use an easily identified temp directory name,
|
||||
# but fall back to the default temp name if `mktemp` does not understand `--suffix`.
|
||||
ZCASH_RPC_TMP_DIR=$(mktemp --suffix=.rpc-diff -d 2>/dev/null || mktemp -d)
|
||||
|
||||
ZEBRAD_RELEASE_INFO="$ZCASH_RPC_TMP_DIR/first-check-getinfo.json"
|
||||
ZCASHD_RELEASE_INFO="$ZCASH_RPC_TMP_DIR/second-check-getinfo.json"
|
||||
|
|
Loading…
Reference in New Issue