Merge pull request #121078 from wamserma/fix-croc-test

croc: fix passthru.tests
This commit is contained in:
Sandro 2021-04-30 03:34:03 +02:00 committed by GitHub
commit b9ed7b607c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,8 +12,8 @@ stdenv.mkDerivation {
${croc}/bin/croc --relay localhost:11111 send --code correct-horse-battery-staple --text "$MSG" &
# wait for things to settle
sleep 1
# receive
MSG2=$(${croc}/bin/croc --relay localhost:11111 --yes correct-horse-battery-staple)
# receive, as of croc 9 --overwrite is required for noninteractive use
MSG2=$(${croc}/bin/croc --overwrite --relay localhost:11111 --yes correct-horse-battery-staple)
# compare
[ "$MSG" = "$MSG2" ] && touch $out
'';