mirror of
https://github.com/systemd/systemd.git
synced 2025-05-27 21:05:55 +03:00
test: avoid SIGPIPE from ssh | tail -n 1
Addresses: https://github.com/systemd/systemd/issues/31518#issuecomment-1968295678
This commit is contained in:
parent
905c9d2c92
commit
38cbb9ab8a
@ -521,9 +521,8 @@ EOF
|
||||
|
||||
ssh -t -t -4 -p 4711 -i /tmp/homed.id_ecdsa \
|
||||
-o "SetEnv PASSWORD=hunter4711" -o "StrictHostKeyChecking no" \
|
||||
homedsshtest@localhost echo zzz | tail -n 1 | tr -d '\r' > /tmp/homedsshtest.out
|
||||
cat /tmp/homedsshtest.out
|
||||
test "$(cat /tmp/homedsshtest.out)" = "zzz"
|
||||
homedsshtest@localhost echo zzz | tr -d '\r' | tee /tmp/homedsshtest.out
|
||||
grep -E "^zzz$" /tmp/homedsshtest.out
|
||||
rm /tmp/homedsshtest.out
|
||||
|
||||
ssh -t -t -4 -p 4711 -i /tmp/homed.id_ecdsa \
|
||||
|
Loading…
x
Reference in New Issue
Block a user