ci: add stdout logs
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user