Attempting to limit runner to set users

This commit is contained in:
Anton Hvornum 2024-05-14 17:08:18 +02:00
parent 4d200e2276
commit b5df588336
No known key found for this signature in database
GPG Key ID: D4B58E897A929F2E
3 changed files with 9 additions and 3 deletions

View File

@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: pwd
- run: find .
- run: echo "Building for $env:GITHUB_ACTOR"
- run: cat /etc/os-release
- run: pacman-key --init
- run: pacman --noconfirm -Sy archlinux-keyring

View File

@ -7,6 +7,7 @@ on:
jobs:
run-qemu:
name: qemu testbench
if: ${{ github.actor == 'torxed' }}
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
@ -29,10 +30,11 @@ jobs:
EOF
- run: pwd
- run: cp /usr/share/ovmf/x64/OVMF_VARS.fd ./tests/qemu/OVMF_VARS.fd
- run: rm ./tests/qemu/archtest.img
- run: qemu-img create -f qcow2 ./tests/qemu/archtest.img 10G
- run: tree
- run: cat .screenrc_test
- run: script -c "screen -c .screenrc_test"
- run: script -c "resize -s 24 80 && stty rows 24 && stty cols 80 && screen -c .screenrc_test"
- uses: actions/upload-artifact@v4
with:
name: archtest-pci_emulation

View File

@ -1,5 +1,6 @@
import threading
import time
import os
import logging
import asyncio
from testbase import TestBase
@ -170,3 +171,6 @@ class TestLeaveAllDefault(TestBase):
break
time.sleep(0.25)
os.system('pkill tail')
exit(self.exit_code)