Project

General

Profile

action #132656 » t01_update_system.py

NoF3X, 2023-07-13 13:21

 
from testapi import *
import sys
sys.path.insert(1, '/var/lib/openqa/tests/openqa-os-autoinst-distri-altlinux/lib/')
from altdistribution import *
from altutils import *
from sudo import *
from tty_console import *
from virtual_console import *
from x11_console import *
import time

def run(self):
virtio_console = "hvc0"
check_boot()
select_test_virtual_terminal()
become_root()
assert_script_run(f"grep '{virtio_console}' /etc/securetty || echo '{virtio_console}' >> /etc/securetty", '3')
update_system({'repo_name': 'p10', 'use_qa_repo': True})
do_exit()
select_x11_tty()
dm_login()

def test_flags(self):
return {'fatal': 1}

(2-2/4)