ci: add stdout logs
This commit is contained in:
parent
2be8b14fc7
commit
7e87567070
4
.github/workflows/e2e.yml
vendored
4
.github/workflows/e2e.yml
vendored
@ -104,6 +104,8 @@ jobs:
|
|||||||
echo '[Service]' >> test.service
|
echo '[Service]' >> test.service
|
||||||
echo 'User=user' >> test.service
|
echo 'User=user' >> test.service
|
||||||
echo 'RemainAfterExit=yes' >> 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 'Type=oneshot' >> test.service
|
||||||
echo 'WorkingDirectory=/home/user' >> test.service
|
echo 'WorkingDirectory=/home/user' >> test.service
|
||||||
echo 'TimeoutStopSec=1' >> test.service
|
echo 'TimeoutStopSec=1' >> test.service
|
||||||
@ -121,6 +123,8 @@ jobs:
|
|||||||
sleep 30s
|
sleep 30s
|
||||||
done
|
done
|
||||||
|
|
||||||
|
ssh root@$IP "cat /var/log/test.log"
|
||||||
|
|
||||||
scp -r user@$IP:/home/user/.out-of-tree/logs .
|
scp -r user@$IP:/home/user/.out-of-tree/logs .
|
||||||
|
|
||||||
ssh root@$IP systemctl is-active test
|
ssh root@$IP systemctl is-active test
|
||||||
|
Loading…
Reference in New Issue
Block a user