1
0

ci: add stdout logs

This commit is contained in:
dump_stack() 2023-05-16 16:54:05 +00:00
parent 2be8b14fc7
commit 7e87567070
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -104,6 +104,8 @@ jobs:
echo '[Service]' >> test.service
echo 'User=user' >> test.service
echo 'RemainAfterExit=yes' >> test.service
echo 'StandardError=append:/var/log/test.log
echo 'StandardOutput=append:/var/log/test.log
echo 'Type=oneshot' >> test.service
echo 'WorkingDirectory=/home/user' >> test.service
echo 'TimeoutStopSec=1' >> test.service
@ -121,6 +123,8 @@ jobs:
sleep 30s
done
ssh root@$IP "cat /var/log/test.log"
scp -r user@$IP:/home/user/.out-of-tree/logs .
ssh root@$IP systemctl is-active test